+ Reply to Thread
Results 1 to 10 of 10

Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    I am trying to save all the worksheets as individual workbook in PDF format in a special folder with cell value. But it is giving me syntax error in below code. Can anyone help me to resolve this issue please.

    Showing Error
    Please Login or Register  to view this content.




    Original Complete Code
    Please Login or Register  to view this content.

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

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

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

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    Thanks for reply again i am getting an error.

    Display Error:
    Please Login or Register  to view this content.
    I am attaching a sample file where Excel format is working fine but in the same way i need in PDF also.
    Attached Files Attached Files

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

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    I tested your file with my code, it works fine, did you change the path ?
    strFilePath = "D:\test\"

  5. #5
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    I appreciate if you make necessary changes on the script posted in #1 because that scrip is making the folder where the file is running and caving the files base on cell value.

    Your script is totally different from that script.

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

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    I'm sorry, but for me your code is very confused, try this
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    Hai Patel,

    This code works perfect as per my requirement. I will test it on my original file and get back to you if i have any problem.

  8. #8
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    Hai Patel,

    The script is showing error on my original file on

    Please Login or Register  to view this content.
    My original file have some hidden sheets might be this is the problem. Can you help me on this issue please. I need to convert only visible sheets into PDF.

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

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    906

    Re: Save All Worksheets As Individual Workbooks In a Special Folder in PDF format

    Thanks it is working on my original file also. Topic marked as solved and reputation added.

+ Reply to Thread

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