+ Reply to Thread
Results 1 to 3 of 3

VB Save as PDF error

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    VB Save as PDF error

    I have a macro enabled workbook with multiple worksheets that I want to save individually in PDF format. I have many other workbooks where I utilize the same basic code as I've included in this workbook with no issues, but I continue to get an error when trying to run it in this workbook. I've spent hours trying to isolate the issue but can't figure out.

    Attached an example version of the workbook for reference. What am I doing wrong? Any help is appreciated!!
    Example Macro Error.xlsm

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: VB Save as PDF error

    Seemed to work OK for me. Are you sure that you are pointing it to save in an existing folder? There is usually a user ID between Users and Desktop.
    Martin

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: VB Save as PDF error

    I suspect you just need the user name between "users" and "desktop:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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