+ Reply to Thread
Results 1 to 6 of 6

Need Save As script where user gets Drive/Folder choice but data establishes file name>

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Need Save As script where user gets Drive/Folder choice but data establishes file name>

    Please Login or Register  to view this content.
    What needs to replace the "X:\Files\aa PM Spreadsheet\" so the drive and folder are optional to the user, while retaining the file name ThisFile?
    Thanks
    Last edited by ILoveStMartin; 06-01-2013 at 12:30 AM.

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

    Re: Need Save As script where user gets Drive/Folder choice but data establishes file name

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Need Save As script where user gets Drive/Folder choice but data establishes file name

    Thank you!
    First - I am not a programmer and may never have an opportunity again to do a workbook requiring macros as I only work part time / am over 70, so please be patient with me on this!
    Couple of things - if a hurricane hits FL this workbook will be on multiple personal computers, and it is not known where the individuals will keep the master workbook. If it is necessary, I could tell them they need put field in c/..., but don't know if that is necessary.
    Also, in what I pasted in, there was the "ThisFile". This is the job name and comes from what the user enters into a cell of the First Page tab, and is what the name of the workbook must be. Maybe I am just to inexperienced, but I don't see where the value of ThisFile is picked up. What am I not seeing?
    Thank you so much!!
    Bill Daily

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

    Re: Need Save As script where user gets Drive/Folder choice but data establishes file name

    Quote Originally Posted by ILoveStMartin View Post
    Thank you!

    ... it is not known where the individuals will keep the master workbook. If it is necessary, I could tell them they need put field in c/..., but don't know if that is necessary.
    You're welcome.
    I don't understand what you are asking?

    Also, in what I pasted in, there was the "ThisFile". This is the job name and comes from what the user enters into a cell of the First Page tab, and is what the name of the workbook must be. Maybe I am just to inexperienced, but I don't see where the value of ThisFile is picked up. What am I not seeing?
    ThisFile = Range("SaveAsFileName").Value
    This line of code gets the Name of the file from a Named Range called SaveAsFileName. You would have to make a named range called SaveAsFileName. Do a web search for something like Excel create a named range for several step-by-step-guides.

    Alternatively; use this line instead and change the sheet name and cell reference to suit.
    ThisFile = Sheets("Sheet1").Range("A1").Value

  5. #5
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Need Save As script where user gets Drive/Folder choice but data establishes file name

    THANK YOU!!
    You understood exactly what my needs were even though my communications were not clear.
    Everything now works perfect!
    You have no idea how much you are appreciated!!!
    Bill - billdaily@cox.net

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Need Save As script where user gets Drive/Folder choice but data establishes file name

    @ILoveStMartin
    Bill,
    It would be prudent not to leave your e-mail address in open Forumns. (Spammers love this)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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