Re: Problem with Logos as pictures



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

.



Relevant Pages

  • Re: Word 2007 cant group pictures, shapes and textbox together
    ... text', and you're still getting a 'lead bell' ding sound when trying to group the items, my guess would be that it is likely picture ... Because of that partial implementation, the inserted pictures and SmartArt are managed by the new Office graphics engine, while the ... inserted shapes and shape handling is still managed in Word. ... Revert to 'classic' by extracting items from a drawing canvas. ...
    (microsoft.public.word.drawing.graphics)
  • Re: Locking Shapes to Pictures in Word 2007
    ... I cut and paste a picture into a document ... How do I associate, or lock, the changes/additions to the picture? ... adding shapes from the Insert tab allows ... in a software program that allows me to manipulate/add shapes, ...
    (microsoft.public.word.docmanagement)
  • Re: detect imported pictures vs. non-imported pictures
    ... Other shapes I do the same thing to, but before the objects will ungroup, I ... Embedded or Linked Picture objects if they're vector graphics (WMFs, EMFs, ... Ultimately I want to convert each imported picture to a drawing object, ...
    (microsoft.public.powerpoint)
  • Re: Painting on PictureBox
    ... Shapes being dragged. ... box using ControlPaint, and then only moving the graphic element when the user ... This picture box has dock style set to fill and is filling out the> whole form. ...
    (microsoft.public.dotnet.languages.csharp)

Loading