![]() |
#1
|
|||
|
|||
![]()
Hi Forum!
I have been trying for 3 days to find a way to toggle objects (Company Logo and address) that are in the header and footer of a letterhead and invoice. There are other objects (page no's etc) in the header and footer that need to be always visible / printed so I can not just turn the whole header on and off. The idea is the client can click a button to turn these objects off when they print on their headed paper (Pre-printed). Or leave them on to send a PDF or print a document for internal use. I have an functioning example document but I can not work out how to target specific objects I import onto the page (or to define a name for them). The example I have uses this code on an image file ("logo1"): If ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage).Shapes("logo1").Visible = True Then ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage).Shapes("logo1").Visible = False ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage).Shapes("logo2").Visible = False Else ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage).Shapes("logo1").Visible = True ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage).Shapes("logo2").Visible = True End If Any help would be greatly appreciated! Miles |
Tags |
headers footers all pages, toolbar, vba in microsoft word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
sumjoh | Word VBA | 1 | 01-29-2013 08:38 PM |
![]() |
nutrastat | Word | 3 | 09-09-2011 01:52 PM |
Migrate 2003 custom toolbar to 2007 | shameerau | Word | 0 | 05-16-2011 07:42 PM |
![]() |
Brandi | Mail Merge | 18 | 06-15-2010 02:10 PM |
Dock a custom floating toolbar? | itgoeson | PowerPoint | 0 | 05-25-2010 08:34 AM |