Results 1 to 4 of 4

Saving a file to two directories

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Saving a file to two directories

    Hi all,
    I am in the final stages of a wb for setting cover for teachers at my school.

    I have set up the vba for applying the correct header (based on selections in the 'menu' sheet). This vba needs to run before any vba for the actions below.
    Sub AddHeaderToAll_FromCurrentSheet()
         'Add A1 from active sheet to each sheets's header
        Dim ws As Worksheet
        For Each ws In ActiveWorkbook.Worksheets
            ws.PageSetup.CenterHeader = ActiveSheet.Range("A1").Value
        Next ws
    End Sub
    I need the wb to do the following on a button click:
    - Save a copy to a directory saved in the sheet 'drive' cell B1 as an excel file
    - Save a PDF version to the directory in sheet 'drive' cell B2.

    wb attached. Thank you in advance! Luke
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1