+ Reply to Thread
Results 1 to 3 of 3

How do I use VBA to make user input part of a filename during a save overwrite?

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    39

    How do I use VBA to make user input part of a filename during a save overwrite?

    Hi guys

    I have truly appreciated all the help I have received on this forum - there has not been one problem I haven't had solved by you! Thank you!

    This might be the toughest query to solve. I am working in Excel 2003 and have a database with a userform that a number of users have access to. Each have their own username and password. I would like to make it so that when a authorised username is entered and submitted, it instantly saves and overwrites the file wherever the file is saved.

    For example:
    - 'GreenHigh' is typed into the login userform and submitted with the commandbutton
    - The file (Tracker.xls) is then overwritten and named 'Tracker_GreenHigh.xls'
    - The user proceeds to input data into the database
    - The user closes the workbook and is prompted to save the changes made to 'Tracker_GreenHigh.xls'
    In my mind, this seems fairly straightfoward, although I do wouldn't have a clue how to code something like that. So far, I have been able to muddle my way through VBA by adapting code to my needs.

    Can anyone suggest any code that might help me to do this?

    If you are able to respond, please could you briefly talk me through what the code is doing.

    Thanks

    Christian :)

  2. #2
    Registered User
    Join Date
    09-21-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: How do I use VBA to make user input part of a filename during a save overwrite?

    Bump no response.

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: How do I use VBA to make user input part of a filename during a save overwrite?

    Bump no response.

+ 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