+ Reply to Thread
Results 1 to 2 of 2

VBA to SaveAs but keep current workbook open

  1. #1
    Registered User
    Join Date
    03-01-2019
    Location
    Nottingham, England
    MS-Off Ver
    2016/365
    Posts
    83

    VBA to SaveAs but keep current workbook open

    Hi Guys,

    I've been using the below macro to successfully save as a new file with name and cell value reference.

    Please Login or Register  to view this content.
    However, I would now like to alter it (or replace it) so it keeps the current workbook open and just saves the new one to the file path. So I guess it's more of a Export As than a Save As.

    Any Ideas?

    Thanks,


    Spoonman

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: VBA to SaveAs but keep current workbook open

    Replace this...
    Please Login or Register  to view this content.
    With this...
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Replies: 2
    Last Post: 09-18-2020, 01:45 PM
  2. [SOLVED] Macro to open a workbook, grab data based on the last date updated in the current workbook
    By jbeets in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-15-2016, 01:58 PM
  3. [SOLVED] need to open a montly workbook based on a date in current workbook
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2015, 03:02 PM
  4. Open a workbook off my desktop then closing current workbook
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2013, 03:34 PM
  5. Open workbook, copy rows, paste to end of current workbook
    By gmn734 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2013, 05:16 AM
  6. [SOLVED] SaveAs overwriting an already open excel workbook?
    By changedsoul in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-16-2012, 07:07 AM
  7. How to open,save and close another workbook from the current workbook using macro?
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2012, 10:42 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