Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Help with Excel table pasted in Word?
I regularly copy tables created in Excel and paste them into Word. I have a
macro which creates a text box and pastes in the Excel bit using Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject, Placement:=wdInLine, DisplayAsIcon:=False But it seems the link back to the original Excel file still exists. If I double-click the Excel table (usually by accident), it opens in Excel. I realize this is by design, although I've specified Link:=False. But when I click out of it, the look and format of the table as originally pasted is gone, and I have to delete that and re-paste in the table. All I want is to have the table created in Excel pasted into Word, preserving all text and cell formatting. I don't need a link back to the program, and I don't need the potential for my formatting to disappear by accidental double-click, leaving my report reader to wonder about what they were supposed to be seeing in that table. What would be a better way to do this? Ed |
#2
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Help with Excel table pasted in Word?
Hi Ed,
I regularly copy tables created in Excel and paste them into Word. I have a macro which creates a text box and pastes in the Excel bit using Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject, Placement:=wdInLine, DisplayAsIcon:=False But it seems the link back to the original Excel file still exists. As Stephanie explains, you're creating an OLE object, which is why Excel is opening. She's assuming you still want to work with the table; I get the impression all you want is to show the table. In the latter case, you should try pasting in a picture format (you may also want to do the copying in Excel in picture format, which you can do by holding down SHIFT when you click on the Edit menu, then you can select "copy as picture") Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#3
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Help with Excel table pasted in Word?
Cindy, the "Copy as Picture" in Excel worked great! In fact, I think I'm
going to put that on my toolbar! Thanks so much. Ed "Cindy M -WordMVP-" wrote in message news:VA.0000aad9.002ca4c5@speedy... Hi Ed, I regularly copy tables created in Excel and paste them into Word. I have a macro which creates a text box and pastes in the Excel bit using Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject, Placement:=wdInLine, DisplayAsIcon:=False But it seems the link back to the original Excel file still exists. As Stephanie explains, you're creating an OLE object, which is why Excel is opening. She's assuming you still want to work with the table; I get the impression all you want is to show the table. In the latter case, you should try pasting in a picture format (you may also want to do the copying in Excel in picture format, which you can do by holding down SHIFT when you click on the Edit menu, then you can select "copy as picture") Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Chart pasted from excel to word is distorted | Charts and Charting in Excel | |||
How to fix a Excel corrupt object pasted into Word? | Excel Worksheet Functions | |||
Problem with excel charts pasted into Word | Excel Discussion (Misc queries) | |||
Excel range truncates when Pasted as Picture to PPT & Word | Excel Discussion (Misc queries) | |||
Pasted text from Excel to Word replaces previous paragraph | Excel Programming |