+ Reply to Thread
Results 1 to 3 of 3

Macro to save as, to specific folder

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

    Macro to save as, to specific folder

    Hello:
    Looking for VBA code to automatically save an excel file as an .xlsx format, and saving to a specific folder: C:\Users\wolfm\Desktop\Load Lists

    I have been using the attached code, but it's not working. It saves to the desktop, not the folder. Also, when it creates the file name based on sFile = ActiveSheet.Range("C4").Value & ".xlsx", it adds wierd things to the file name. I want the file name to be simply the value in C4.

    Any help is greatly appreciated!

    Please Login or Register  to view this content.

  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: Macro to save as, to specific folder

    Hi, wolfm,

    arenīt you missing a backslash for the folder like
    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: Macro to save as, to specific folder

    Great! That worked! Thank you, Holger!

+ 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] Macro to save to a specific folder
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-01-2014, 06:16 PM
  2. [SOLVED] MACRO Save in specific folder
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2012, 02:53 PM
  3. [SOLVED] Macro to save workbook to specific folder with a specific name, then kill/disable itself.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2012, 03:50 PM
  4. Macro to 'save as' in a specific folder
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-01-2012, 09:37 AM
  5. Save macro to specific folder by date
    By dgtaylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2011, 12:56 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