+ Reply to Thread
Results 1 to 4 of 4

Macro to save excel file as name indicate in cell

  1. #1
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    283

    Macro to save excel file as name indicate in cell

    Dear Pro,

    I reordered following macro. I would like the file to be save in the name indicate in cell M1.
    The name in cell M1 will change every time when the file extracted.
    Is they anyway to do it?
    Appreciate your help!


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Macro to save excel file as name indicate in cell

    What do you have, exactly, in cell M1?
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Macro to save excel file as name indicate in cell

    If I understand correctly, if you have in M1 the workbook name(like ABC.xlsx), the following code will save the workbook in the specified folder with the name from M1.
    Make sure to delete the row that contains Selection.ClearContents because it will delete the content of M1
    HTML Code: 

  4. #4
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    283

    Re: Macro to save excel file as name indicate in cell

    That's awesome!! TQVM!!!!!!!

+ 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. [SOLVED] Excel macro to save as file in a specific cell
    By bixha in forum Excel General
    Replies: 2
    Last Post: Yesterday, 03:24 PM
  2. Replies: 6
    Last Post: 09-18-2015, 04:19 PM
  3. [SOLVED] Save file as macro-enabled with path and file name from a cell
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2015, 11:51 PM
  4. Save Macro Template on a network drive as Excel file using a cell value as the name
    By rjagain62 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2014, 03:21 PM
  5. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  6. Converting excel 2003 file ext macro file-save code to reflect excel 2007 exts
    By pmanoloff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 12:17 PM
  7. Macro to save a file with a pre file name + week number from a cell
    By The.Dutchmaster in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 03:54 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