+ Reply to Thread
Results 1 to 2 of 2

Using VBA to save an excel Macro-Enabled Workbook to the current directory

  1. #1
    Registered User
    Join Date
    04-28-2019
    Location
    Rochester, New York
    MS-Off Ver
    Office 365
    Posts
    1

    Exclamation Using VBA to save an excel Macro-Enabled Workbook to the current directory

    Hello all,

    I am working on a template for our sales department and need to save a Macro-enabled Template as a Macro-Enabled Workbook in the current/active directory.

    I have a name set 'fname' for the file. Idealy, the rep would be able click the button to save the workbook and it would place a copy in the current directory.

    I have tried many iterations of this but am running into issues

    Thanks all!

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Using VBA to save an excel Macro-Enabled Workbook to the current directory

    Hi there,

    See if the following code gets you moving in the right direction:

    Please Login or Register  to view this content.
    The highlighted values may be changed to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    GregM

+ 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. VB A to save as macro enabled workbook
    By syedmehdi in forum Excel General
    Replies: 5
    Last Post: 12-09-2014, 11:49 AM
  2. Macro to Save As for an Excel Macro Enabled workbook
    By hvitzthum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2013, 09:19 AM
  3. Script to Save current workbook to another directory?
    By brianjluke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2013, 12:32 AM
  4. [SOLVED] Create and Save Workbook to Current Directory Using VBA
    By amanda12345 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-23-2013, 10:13 PM
  5. Macro: Save Mail- Merged Doc to current Directory
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 02:30 PM
  6. Replies: 1
    Last Post: 04-01-2011, 05:02 AM

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