Saving Documents + Exporting Pages HELP

I Need Help... It's been a while since i've reached out. 

I have a Document with 2 pages. 

I need each (document , page 1  & page 2) to all save in different locations with one click. 

Example:  Upon pressing command button...

  • Document will save in location 1
  • Page 1 will save in location 2
  • &
  • Page 2 will save in location 3. 

Currently I have 3 command buttons saving each out individually. I want to consolidate but need direction. Any help is appreciated. 

Chieri

Parents
  • Keeping it simple, you could do something like this:

    Sub SirSaveALot()
        Dim d As Document
        Dim p As Page
        Dim sa As New StructSaveAsOptions
        
        sa.Range = cdrSelection
        
        Set d = ActiveDocument
        
        d.SaveAs "C:\Temp\Save\AllPages.Cdr"
        
        For Each p In d.Pages
            p.Activate
            p.Shapes.All.CreateSelection
            d.SaveAs "C:\Temp\Save\" & p.Name & "\" & p.Name & ".cdr", sa
        Next p
    End Sub
    

    Hope that gets you started.

    -Shelby

Reply Children
No Data