Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Use Word vba to copy a range from Excel into Word

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Dec 20, 2007 7:14 am    Post subject: Use Word vba to copy a range from Excel into Word Reply with quote

Hi,

I would like to use Word vba to copy a range from Excel into Word:

'oWB is the open excel worksheet
'Copy the range
oWB.Worksheets("Sheet1").Range("$BZ$3:$CG$77").Copy

'Now paste into word
Selection.Range.PasteAndFormat wdChartPicture

However, this actually pastes as a Table.

I want the excel range to look like it would if you manually:
1) copied it in Excel
2) in Word, Paste special (picture - enhanced metafile)

Any ideas ?

Thanks,
Tom
Back to top
Google
Sponsor





PostPosted: Thu Dec 20, 2007 7:14 am    Post subject: Advertisement

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum