Re: Problem with Logos as pictures
- From: "macropod" <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 08:10:18 +1000
Hi Oggy,
You can do something similar in Word, provided the picture is inserted and managed as a Shape object. Word has both Shapes and InlineShapes, but only Shapes can be named. The toggling code in Word would be:
Sub Toggle()
With ActiveDocument.Shapes("Logo1")
.Visible = Not .Visible
End With
End Sub
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
"Oggy" <ianchaplin@xxxxxxxxxxxx> wrote in message news:adbaba31-0139-4ca9-8424-f17eee6b4716@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 15 Apr, 14:59, "macropod" <inva...@xxxxxxxxxxxxxxx> wrote:Hi Oggy,
The visibility toggling code I posted works for me. Were you using that or something different?
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
"Oggy" <ianchap...@xxxxxxxxxxxx> wrote in messagenews:39e845ea-0f52-4882-8073-a3b127831944@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thanks for your help,
> It now errors saying i have not set an object when i try to toggle on or off.
> What reference should i have for the Picture Object
> Thanks again- Hide quoted text -
- Show quoted text -
Found it, because i inserted the logo twice in the same place the
toggled appeared not to work.
Would the same code work on a word document?
Thanks
.
- References:
- Problem with Logos as pictures
- From: Oggy
- Re: Problem with Logos as pictures
- From: macropod
- Re: Problem with Logos as pictures
- From: macropod
- Re: Problem with Logos as pictures
- From: Oggy
- Re: Problem with Logos as pictures
- From: macropod
- Re: Problem with Logos as pictures
- From: Oggy
- Problem with Logos as pictures
- Prev by Date: Re: Problem with Logos as pictures
- Next by Date: Linking Excel Database to Word Document
- Previous by thread: Re: Problem with Logos as pictures
- Next by thread: Re: Problem with Logos as pictures
- Index(es):
Relevant Pages
|
Loading