Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Change Width of Objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
willr - 14 Mar 2007 04:06 GMT
I am using the following steps to copy a range of cells from an Excel
document and paste them into a Word doc.

Past Special > Link > Microsoft Office Excel Worksheet Object

Would someone be able to provide me with some VBA code that could be
used as a macro to automatically re-size all of these objects in Word
to a specified width?

Thank you,
William
Jezebel - 14 Mar 2007 04:31 GMT
With ActiveDocument.Shapes(n)
   .Width = 100
   .Height = 100
End with

You'll need your own logic to work out what n should be.

>I am using the following steps to copy a range of cells from an Excel
> document and paste them into a Word doc.
[quoted text clipped - 7 lines]
> Thank you,
> William
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.