Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
Ed Ed is offline
external usenet poster
 
Posts: 399
Default 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   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
Ed Ed is offline
external usenet poster
 
Posts: 399
Default 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
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
Chart pasted from excel to word is distorted GP Charts and Charting in Excel 2 April 12th 07 08:28 PM
How to fix a Excel corrupt object pasted into Word? hazel Excel Worksheet Functions 1 July 28th 06 06:57 PM
Problem with excel charts pasted into Word laudrup Excel Discussion (Misc queries) 2 March 9th 06 12:08 AM
Excel range truncates when Pasted as Picture to PPT & Word Floyd Excel Discussion (Misc queries) 2 January 28th 05 04:21 AM
Pasted text from Excel to Word replaces previous paragraph TT[_2_] Excel Programming 0 January 20th 05 06:07 PM


All times are GMT +1. The time now is 01:03 PM.

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"