Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Word and Excel together
Message
From
22/05/2007 13:54:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Using Word and Excel together
Miscellaneous
Thread ID:
01227711
Message ID:
01227711
Views:
59
If I generate a table in Excel using automation, and then copy and paste it into a Word document also using automation, how can I control where it is placed in the Word document, or how can I get a handle on the pasted table so that it can be positioned on the page. I am selecting a bookmark in the Word document prior to the paste, but the table ends up below the bookmark and left of the document margin. I would like the table to be either at the left margin or centered on the page.

Thanks
with oWord
	do recap_chart with lcPermID, lnYear
	.ActiveDocument.Bookmarks("ExcelTable").select
	.selection.Paste
endwith
Next
Reply
Map
View

Click here to load this message in the networking platform