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 / December 2007

Tip: Looking for answers? Try searching our database.

Link to external graphic file or insert/delete graphic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deejay - 29 Nov 2007 17:21 GMT
I have a macro which I use to toggle certain graphics on or off. I have
inserted the relevant piece of code below. The problem is that all my
documents have mushroomed to 800+ kb in size from 40kb previously.

My question is it possible to link to a graphic based in a permanent
location rather than the graphic residing in each document? If not, is it
possible to insert the file and delete it instead of toglling visible/hidden?
I would need the graphic to be a precise size and at a precise location.

Thanks.

The current code is:

With ActiveDocument
       ' Check current status - it's in fax format if graphics are visible
       boolFax =
.Sections(1).Headers(wdHeaderFooterFirstPage).Shapes(1).Visible
 
           ' Show/Hide the graphics
           With .Sections(1)
               For Each aShape In .Headers(wdHeaderFooterFirstPage).Shapes
                   aShape.Visible = Not boolFax
               Next aShape
           End With
zkid - 07 Dec 2007 03:21 GMT
Have you tried using the INCLUDEPICTURE field code?  You can control its size
by placing it inside a text box, and it is basically a hyperlink to the
original graphic.

> I have a macro which I use to toggle certain graphics on or off. I have
> inserted the relevant piece of code below. The problem is that all my
[quoted text clipped - 20 lines]
>                 Next aShape
>             End With
 
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.