Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Feb 2004
    Location
    Houston, Texas, USA
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro to Resize and Center Visio Drawing (97/SR-2)

    I am creating a large number of PPT presentations, each of which contains a large number of Visio diagrams. I am copying the Visio diagram into the desired PPT slide, then manually resizing it (larger) to fit the full size of the page, centering it, and then moving it so that the top of the diagram is roughly at the same point on the PPT slide on every slide. Needless to say, this is a tedious process. Can anyone suggest a macro (or other solution) that would do this for me? I don't mind copying the diagram into the slide, but would like to automate the formatting, centering, and alignment process.

    Thanks!!

  2. #2
    Star Lounger
    Join Date
    Mar 2004
    Location
    Calgary, Alberta, Canada
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro to Resize and Center Visio Drawing (97/SR-2)

    I have never written any vba for PowerPoint but I found this under MSDN which may get you up and started...

    MSDN Controlling Microsoft PowerPoint for Windows 95 Through OLE Automation

  3. #3
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: Macro to Resize and Center Visio Drawing (97/SR-2)

    You might also find the links in <post#=405479>post 405479</post#> to be useful in coming up to speed on VBA in PowerPoint. Unfortunately, PPT doesn't expose as much of its object model as most Office apps, but it should be possible to do what you envision using the recorder.
    Wendell

  4. #4
    Star Lounger
    Join Date
    Feb 2004
    Location
    Houston, Texas, USA
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro to Resize and Center Visio Drawing (97/SR-2)

    Thanks so much, I was able to get started with the recorder and then edit to do what I needed. I used another post to figure out how to add the macro to my tool bar!

    Caroline

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •