+ Reply to Thread
Results 1 to 4 of 4

Need multiple Excel 2007 worksheets within 1 workbook to convert to 1 pdf per worksheet

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Missouri
    MS-Off Ver
    2007
    Posts
    3

    Need multiple Excel 2007 worksheets within 1 workbook to convert to 1 pdf per worksheet

    I have an Excel 2007 workbook with several worksheets. I need to easily create a PDF for each worksheet to email to coworkers. I am new to Macros so if anyone has one already written to do this and would post it, I would really appreciate it.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need multiple Excel 2007 worksheets within 1 workbook to convert to 1 pdf per workshee

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Missouri
    MS-Off Ver
    2007
    Posts
    3

    Re: Need multiple Excel 2007 worksheets within 1 workbook to convert to 1 pdf per workshee

    Thank you for your quick response. It starts to run but then gets caught up. Can you help?



    Sub export_To_Pdf()
    Application.ScreenUpdating = False
    strFilePath = "C:\test\" ' <<<<<<<<<<<< to be changed
    On Error Resume Next
    For j = 1 To 2
    strPdfName = Sheets(j).Name
    Sheets(j).Copy
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=strFilePath & strPdfName, _
    Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
    OpenAfterPublish:=False
    ActiveWorkbook.Close (False)
    Next
    Application.ScreenUpdating = True
    End Sub

  4. #4
    Registered User
    Join Date
    07-29-2014
    Location
    Missouri
    MS-Off Ver
    2007
    Posts
    3

    Re: Need multiple Excel 2007 worksheets within 1 workbook to convert to 1 pdf per workshee

    I am an idiot! I figured it out. I really appreciate your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extract specific row copies from multiple worksheets in Excel 2007 workbook
    By Billirl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2014, 01:52 AM
  2. Excel 2007 : Convert Worksheet to Calendar?
    By CharlieB124 in forum Excel General
    Replies: 11
    Last Post: 11-10-2012, 06:47 PM
  3. [SOLVED] Merging contents from multiple worksheets to a new worksheet within the same workbook
    By fichen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2012, 06:18 PM
  4. Copy multiple worksheets from 2003 workbook to one worksheet in 2010 workbook
    By KeithRoberts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2012, 10:18 AM

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