Results 1 to 13 of 13

Thread: Solved: Add-in with custom menu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    This is the code for one of the subroutines. Very simple, and I expect I might have to change some of it if it's to become an add-in.
    [vba]
    Sub twoSectionsDown()
    On Error Resume Next

    With Application.Presentations("Layouts.ppt")
    .Slides(15).Copy
    End With
    With Application.ActiveWindow
    .ViewType = ppViewSlideSorter
    .View.Paste
    .ViewType = ppViewNormal
    End With
    End Sub
    [/vba]
    Note: I was seeing it paste as a picture sometimes, so that's why I force it to go into slide sorter mode before I paste then switch back (it seems to have fixed that problem).
    Last edited by TrippyTom; 11-01-2006 at 12:04 PM.
    Office 2010, Windows 7
    goal: to learn the most efficient way

Posting Permissions

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