+ Reply to Thread
Results 1 to 2 of 2

ExportAsFixedFormat issues with Filename or Saving

  1. #1
    Registered User
    Join Date
    10-05-2021
    Location
    Columbus, OH
    MS-Off Ver
    Windows 10
    Posts
    1

    ExportAsFixedFormat issues with Filename or Saving

    Hello!

    New to this forum, I hope I get the syntax right! I created a UserForm which has a command button that will take 2 sheets of my large workbook and export them as a single PDF. Here is the code:

    Please Login or Register  to view this content.
    The problem is, things get really hairy when a user exports this a second time. The sheets contain information that will update need to be exported multiple times, but at best this overwrites the old file (not ideal), at worst if the old file is open it crashes. I'm not sure if there's a way to make the filename variable, or if there's another command I can use to export without saving and allow my users to save as they wish.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: ExportAsFixedFormat issues with Filename or Saving

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Use cell as filename while saving via VBA
    By jesse1601 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-19-2020, 07:16 PM
  2. saving vbs for Workbook that filename always changes
    By yankiessg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2020, 10:53 AM
  3. [SOLVED] ExportAsFixedFormat FileName problem
    By ikslohap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2012, 07:08 PM
  4. Help with formula of filename and saving filename as current time
    By hqradio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2012, 06:10 AM
  5. Saving Sheets With Same Filename
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2009, 06:12 AM
  6. [SOLVED] Saving FileName
    By CyndyG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2005, 05:06 PM
  7. Saving as Filename
    By Rutgers_Excels in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2005, 12:37 PM

Tags for this Thread

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