+ Reply to Thread
Results 1 to 6 of 6

Saving Current Macro Enabled Workbook

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Saving Current Macro Enabled Workbook

    Greetings!
    I am struggling with creating a macro to save the current active macro enabled workbook to another name and close, and keep the current active macro enabled workbook open.
    Any help will be greatly appreciated.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Saving Current Macro Enabled Workbook

    Does this work?
    Please Login or Register  to view this content.
    Obviously change the path and file name to suit.

    BSB

  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Saving Current Macro Enabled Workbook

    I am using the following code, but does not allow for the current workbook to say open.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Saving Current Macro Enabled Workbook

    In your code what is in cell B1 on Sheet1 and what is allocated to the variable SvName?

    BSB

  5. #5
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Saving Current Macro Enabled Workbook

    BSB,
    Sorry, I pasted the wrong code - see below. Cell B1 on sheet 1 contains: "Summary_Report".
    Please Login or Register  to view this content.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Saving Current Macro Enabled Workbook

    Maybe this?
    Please Login or Register  to view this content.
    You may need to allocate the path and file extension too, but it's not fully clear from your code if that's already done.
    For example, what is "filename2"?

    BSB

+ 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. Using VBA to save an excel Macro-Enabled Workbook to the current directory
    By Swagnerb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2019, 06:37 AM
  2. [SOLVED] Lost macro when saving as Non-Macro Enabled Workbook
    By babb101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2018, 04:23 AM
  3. Saving Macro-enabled workbook in e-docs DM
    By Masken in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 05:25 AM
  4. [SOLVED] Macro to Saving Workbook Sheets as Separate Macro-Enabled Workbooks
    By puppetpalace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2013, 01:58 PM
  5. [SOLVED] Saving workbook as 2003 xls then reopen macro enabled workbook
    By JPalms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2013, 01:24 PM
  6. Saving just as macro-enabled Workbook possible?
    By The Intern in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2011, 07:09 AM
  7. Replies: 2
    Last Post: 02-24-2011, 05:17 PM

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