Closed Thread
Results 1 to 7 of 7

1 macro to Save as w file name + progressive number & another save as for next data entry

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

    1 macro to Save as w file name + progressive number & another save as for next data entry

    File will have a base name that needs to be maintained
    Worksheet has button to link to macro.

    Macro needs to:

    Protect sheet and save with base name plus a number (progressive)
    i.e. First save: alsmith1 Second save: alsmith2

    and then do another save (with certain named cells unprotected)

    File name to be base file name plus “Ready for update” plus last progressive number plus one
    i.e. After the first save, the file name would be “alsmith Ready for update 2”.
    After the second save, he name would be “alsmith Ready for update 3”

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,688

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    It seems that you are asking for a complete solution from scratch, rather than asking a question to get you past a sticking point. What have you done to get started?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    The file can be saved as "work partially done" or "work all done". It normally takes several partials before the final.
    Button currently on the sheet user has to click on double checks critical parts of the entry and then asks the user to save the file just as I have shown in my request for help.
    I have another button which runs a macro on the "Ready" file which totals some numbers, clears some cells and gets the form ready for the next posting of data, etc.
    But, I am stuck.
    While I can do a "save as" macro, I do not know how to add a number to the name - nor do I know how to add a word but I would like to in order to automate it as there have been some errors.
    Good question - Believe I understand your thinking - Am i giving a person a fish or am I teaching him/her to fish?
    Believe me - you are teaching which I appreciate very much!!!!

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

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    When you response came in I was considering the generation of the following as a new post, with exmples at the bottom.
    Should I? - This is what I would post:

    Have a master file which user saves – using name of job - with no data entries.
    Want to automate the saving process after data is entered with a “SAVE” button on spreadsheet which would

    First time saved via button –
    number 1 added to name and then saved with ready at the end of the name.

    Second time (and all other) saves via the button
    file saved with ready removed but number increased by one and then, like above, saved with ready at the end.


    NOTE –
    ALSO WANT SHEET TO BE PROTECTED (no password) WHEN SAVED WITH JUST THE NUMBER - BUT NOT WHEN READY IS IN THE NAME

    EXAMPLE OF FILE NAMES

    First saving:
    Johnson1
    and then
    Johnson1Ready

    Second saving: Johnson1Ready saves as
    Johnson2
    and then
    Johnson2Ready

    Third saving: Johnson2Ready saves as
    Johnson3
    and then
    Johnson3Ready

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,688

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    Please attach your file. The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.

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

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    Thanks
    Decided to let user do what I was going to do with the macro.
    How do I erase this off of Excl Forum since it is a nothing post??

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,688

    Re: 1 macro to Save as w file name + progressive number & another save as for next data en

    We don't delete threads but I'll close it.

Closed 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 file by employee and save as PDF in path
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-18-2017, 11:39 AM
  2. [SOLVED] Need to loop a macro to save images to file - but save to user defined directory.
    By superfurry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2015, 07:49 AM
  3. Macro to Auto save a backup copy in a seperate location OR save file with a pop up
    By kdsanderson30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2014, 12:38 PM
  4. how to specify a file save path to a save macro
    By Solidstan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-04-2013, 05:33 PM
  5. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  6. Macro to save a file with a pre file name + week number from a cell
    By The.Dutchmaster in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 03:54 PM
  7. help with macro to save repeating data entry
    By Tom in forum Excel General
    Replies: 0
    Last Post: 02-16-2005, 12:29 AM

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