+ Reply to Thread
Results 1 to 3 of 3

"Save As" in current directory, filename from cell value

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    11

    "Save As" in current directory, filename from cell value

    Hi there,

    I have a macro that a value in cell A1, and I would like the macro to then save the workbook as a new workbook named for the value of that cell. I have been able to figure out how to do this, but it keeps saving it in the My Documents folder and I just want it to be in the same folder as the original workbook. Is there a way to do this without hard-coding the directory?



    Thanks,
    Alex

  2. #2
    Registered User
    Join Date
    08-28-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: "Save As" in current directory, filename from cell value

    I found a solution. In case anyone is interested, this is what I used:


    Please Login or Register  to view this content.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: "Save As" in current directory, filename from cell value

    @ AlexCoyne

    Based on your last post it seems that you solved your issue but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ 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