Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2002 - Unhide Grahpic in Header
I need to write a macro which will open a header, file the hidden graphic,
and make the graphic visible. Does anyone know how to do this? I can open the Header and Footer, but when I do a find for the graphic, it does not find anything. Brenda Levien. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2002 - Unhide Grahpic in Header
Hi ?B?Qi4gTGV2aWVu?=,
I need to write a macro which will open a header, file the hidden graphic, and make the graphic visible. Does anyone know how to do this? I can open the Header and Footer, but when I do a find for the graphic, it does not find anything. You can address a graphic in a specified range directly, without having to Find it. Since you can hide it, I'm assuming it's not been formatted with any text wrap. This would make it an InlineShape (as opposed to a Shape). So something along these lines: Dim doc as Word.document Dim rng as Word.Range Dim ils as Word.InlineShape Set doc = ActiveDocument Set rng = doc.Sections(1).Headers(wdHeaderFooterPrimary).Ran ge rng.InlineShapes(1).Range.Font.Hidden = false 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.word.docmanagement
|
|||
|
|||
Word 2002 - Unhide Grahpic in Header
Are you writing Visual Basic?
Most macros we create are through Tools and Macros, not Visual. I found that if I pause record, and choose the macro, and then start recording, the macro runs as I intended. Thanks. "Cindy M -WordMVP-" wrote: Hi ?B?Qi4gTGV2aWVu?=, I need to write a macro which will open a header, file the hidden graphic, and make the graphic visible. Does anyone know how to do this? I can open the Header and Footer, but when I do a find for the graphic, it does not find anything. You can address a graphic in a specified range directly, without having to Find it. Since you can hide it, I'm assuming it's not been formatted with any text wrap. This would make it an InlineShape (as opposed to a Shape). So something along these lines: Dim doc as Word.document Dim rng as Word.Range Dim ils as Word.InlineShape Set doc = ActiveDocument Set rng = doc.Sections(1).Headers(wdHeaderFooterPrimary).Ran ge rng.InlineShapes(1).Range.Font.Hidden = false 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 :-) |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2002 - Unhide Grahpic in Header
Hi ?B?Qi4gTGV2aWVu?=,
Are you writing Visual Basic? Most macros we create are through Tools and Macros, not Visual. ALL macros you record are written down as Visual Basic for Applications (VBA). Choose one of your macros in Tools/Macro/Macros, then click "Edit" and you'll see what I mean :-) If you want a macro to do something that the macro recorder can't handle, then you must edit it or, sometimes, write the macro from scratch. I found that if I pause record, and choose the macro, and then start recording, the macro runs as I intended. If this works for you, that's fine :-) 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 | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word should catalog misspelled words to study. | Microsoft Word Help | |||
Word should allow to 'divide' page by 3 or 4, not just 2 | Page Layout | |||
Converting Word Perfect forms to Word forms | Microsoft Word Help | |||
Word 2002 and Word 2003 trading default file association | Microsoft Word Help | |||
In Word, how can I see all files (*.*) in "save as"? | New Users |