+ Reply to Thread
Results 1 to 3 of 3

save macro with specific folder and file name and type

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    87

    save macro with specific folder and file name and type

    I would like to create a macro that will save my .xltm file as a .xlsm file (forced file type). I would like the file name to be formatted as the word "DECO" followed by a space, followed by a six-digit number which would be pulled from cell "L5" from the active worksheet. For example: DECO 123456.xlsm
    I would like the file saved in network folder: "O:\Data\DecoForeman\"
    I wish to save the entire workbook. Any help would be appreciated! Thank you!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: save macro with specific folder and file name and type

    Hi, wolfm,

    this may do it (as long as the folder exists and the user may write to it) whereas the 6-digit number was not specified in the question (is it part of the cell or the whole cell like I assumed):
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    87

    Re: save macro with specific folder and file name and type

    Thank you Holger! This works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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