Closed Thread
Results 1 to 8 of 8

Save worksheet automatically as pdf with same filename

  1. #1
    Registered User
    Join Date
    09-03-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    19

    Save worksheet automatically as pdf with same filename

    At the moment I use a macro to SaveAs .xls. This works great. Problem is, in the future I need to save the sheet as a pdf file (cause its much more difficult to change values).
    The filename should stay the same as the existing excelfile (at the moment also happening). Macro's from the original file are also deletet in the extracted file.
    This is what I have and, as said, works great but it seems I'm not capable to change this for pdf:
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    I've tried several posibilities like:
    Please Login or Register  to view this content.
    But all I've tried doesn't work. Anyone ideas?
    Last edited by 6StringJazzer; 03-28-2018 at 01:28 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save worksheet automatically as pdf with same filename

    You nearly had it with the last one.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-03-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: Save worksheet automatically as pdf with same filename

    Thanks for your answer but ...
    Seems still to give a problem. Complete line highlighted in yellow. Don't know what's wrong.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save worksheet automatically as pdf with same filename

    When a line is highlighted in yellow, an error message pops up. What is the error message?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save worksheet automatically as pdf with same filename

    Did you set a value for MyFileName?

  6. #6
    Registered User
    Join Date
    09-03-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: Save worksheet automatically as pdf with same filename

    No it doesn't give an error message and no didn't set a value. I also don't know how to fix the saving location.
    Cause I'm new here, I don't know how to do this:
    Please do not duplicate threads. If you have posted the question in the free forum already, please PM a mod / admin to delete / close the thread for you so you can repost in the Commercial services subforum. Thank you - Admins

    I want to put it on the commercial services place. Wanna put max. 30$ on it.

  7. #7
    Registered User
    Join Date
    09-03-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    19

    Re: Save worksheet automatically as pdf with same filename

    Already bought this.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save worksheet automatically as pdf with same filename

    Thread closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically rename worksheet based on filename
    By cyee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2017, 01:56 AM
  2. [SOLVED] Read out Filename and Save all Sheet as Filename.pdf
    By bluesurger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2014, 02:34 AM
  3. [SOLVED] How to automatically add the Value of a spesific Cell into the "Save" filename?
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2013, 12:55 PM
  4. 'Automatically' Save a WorkSHEET CSV file on SAVE
    By jacalakie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 08:00 PM
  5. [SOLVED] Macro to save single worksheet as PDF. Filename based on cell.
    By adam.hewitt5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2012, 05:21 PM
  6. VBA code: save worksheet as separate workbook; use cell values as filename
    By ACurtis802 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-17-2009, 07:23 PM
  7. [SOLVED] USE MACRO TO SAVE WORKSHEET SELECTING FILENAME FROM CELLS
    By David Vollmer in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-10-2005, 11:05 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