Results 1 to 3 of 3

Excel 2010 multiple worksheets print to multiple pdf 's is there a macro for this?

Threaded View

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel 2010 multiple worksheets print to multiple pdf 's is there a macro for this?

    Good Afternoon,

    I have a Excel spreadsheet with 179 worksheets. I have the following macro which works great at making them into seperate files however is there a way to make them into seperate pdfs without going to print each of them independantly?

    Apparently I cannot use adobe pro 9 with excel 2010 because the ribbon issue. Any help would be greatly appreciated. I am just starting to learn about macro's so please consider me a dummy!


    Sub CreateNewWBS()
    Dim wbThis As Workbook
    Dim wbNew As Workbook
    Dim ws As Worksheet
    Dim strFilename As String
    
    Set wbThis = ThisWorkbook
    For Each ws In wbThis.Worksheets
    strFilename = wbThis.Path & "/" & ws.Name
    ws.Copy
    Set wbNew = ActiveWorkbook
    wbNew.SaveAs strFilename
    wbNew.Close
    Next ws
    End Sub

    Moderator Edit:

    Hello fontana.

    Please notice that [CODE] tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 10-18-2012 at 05:17 PM. Reason: Added code tags

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