Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2012, 03:48 AM
ramsgarla ramsgarla is offline Extra spaces between the lines after pasting data to Word Windows 7 64bit Extra spaces between the lines after pasting data to Word Office 2010 64bit
Novice
Extra spaces between the lines after pasting data to Word
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default Extra spaces between the lines after pasting data to Word

I am trying to copy and paste data from RTF to word document and i find
extra spaces between the lines in word.



I am using below code to paste the data in word.

PwrdPasteDoc.Sections.Last.Range.PasteSpecial(, , , , DataType:=Word.WdPasteDataType.wdPasteRTF)

With PwrdPasteDoc.Styles("Normal").Font
.Name = "Arial"
.Size = 10
End With

How do i avoid these extra spaces between the lines in word.

I checked my word settings and linespacing is set to single.

Anycode snippets would be of great help.
Reply With Quote
  #2  
Old 10-29-2012, 12:26 AM
macropod's Avatar
macropod macropod is offline Extra spaces between the lines after pasting data to Word Windows 7 64bit Extra spaces between the lines after pasting data to Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The 'extra' spaces are either in the data or are a result of whatever spacing your 'Normal' Style has.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra spaces between the lines after pasting data to Word Columns lines in table have spaces and indents in the borders lukester Word Tables 3 07-11-2012 07:01 AM
Extra spaces between the lines after pasting data to Word Slight extra space between lines. lucadelcarlo Word 1 04-23-2011 04:05 PM
Powerpoint: adding data to trend lines w/o data labels HaiLe PowerPoint 0 04-11-2011 09:21 AM
Extra spaces between the lines after pasting data to Word Word extra spacing on page break ellinj Word 4 03-21-2011 05:12 PM
macro for comparing data from 3 columns and pasting into another worksheet ashukla Excel 1 06-24-2009 05:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft