Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Insert a line in word from excel

I am using Office 97, I am in the process of writing code which exports
pictures form excel to word with the following code

With wrdDoc

.Content.PasteSpecial Link:=False,
DataType:=wdPasteMetafilePicture, _
Placement:=wdFloatOverText, DisplayAsIcon:=False

End With

But I can't get WORD to move down a line leaving the picture where it has
been pasted so I can paste the next picture in!

I have tried

Selection.EndKey Unit:=wdStory

but it doesn't work

Can anyone assist, please?


--
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
rog rog is offline
external usenet poster
 
Posts: 39
Default Insert a line in word from excel

Not sure what kind of object your wrdDoc is, but you could
try :

wrdDoc.TypeParagraph

(I just recorded this in word)

Rgds

Rog

-----Original Message-----
I am using Office 97, I am in the process of writing code

which exports
pictures form excel to word with the following code

With wrdDoc

.Content.PasteSpecial Link:=False,
DataType:=wdPasteMetafilePicture, _
Placement:=wdFloatOverText,

DisplayAsIcon:=False

End With

But I can't get WORD to move down a line leaving the

picture where it has
been pasted so I can paste the next picture in!

I have tried

Selection.EndKey Unit:=wdStory

but it doesn't work

Can anyone assist, please?


--
Mark
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert word to excel SLK Excel Discussion (Misc queries) 0 May 9th 08 01:44 AM
How do I insert a row between each line of data in Excel? Jacobo Excel Discussion (Misc queries) 4 June 25th 07 11:44 PM
How do I insert a last updated line in an excel worksheet? Michael Warshum Excel Discussion (Misc queries) 0 October 25th 06 03:17 PM
How do I insert manual line breaks in excel? sldwrks84 Excel Worksheet Functions 2 January 12th 06 04:49 PM
insert field from Word into Excel Kaththea Excel Worksheet Functions 6 June 8th 05 06:56 PM


All times are GMT +1. The time now is 02:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"