Closed Thread
Results 1 to 5 of 5

VBA to undo everything since last save

  1. #1
    Registered User
    Join Date
    08-01-2018
    Location
    TN
    MS-Off Ver
    2010
    Posts
    6

    VBA to undo everything since last save

    Will give a brief overview:
    - Moving to SharePoint
    - must use excel app (not online version) due to file macros / existing VBA
    - people need to update the file so read only not an option
    - people are having issues with understanding that they need to look if they are the only one in the file or not and those first in are getting frustrated when others pop in and make changes and cause issues and overwrites

    Solution:
    - Have a process where when a person logs in, it uses environment username and if username of person opening file... code below....
    Please Login or Register  to view this content.
    Problem is that for some reason, depends on how fast the connection of the person but we are seeing some people open the file and when others open the file, sometimes the first users name is showing (causing the 2nd to go read only) and sometimes the usernames are not showing in the file for the second person.
    So I wanted to add a "save" after the if empty.....

    Problem is that at the before close, the below is posted to give them the option to save or not and if they don't want to save, the clearing of the username is not "saved".
    Please Login or Register  to view this content.
    So what we need to do is that if the person says they don't want to save, we need to undo all they did PLUS clear the username in A1 and re-save then close.

    This way, if people are opening after the first person, the first persons name is "saved" causing them to go read only or close and no chance of them opening files that have not updated on the server due to a lag.

    Hope this makes sense as this is the last hurdle to complete what has been a long process. At least I hope this is the last one!

    Appreciate any and all help/guidance.
    Last edited by pwbrown7333; 11-18-2021 at 04:09 PM.

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

    Re: VBA to undo everything since last save

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-01-2018
    Location
    TN
    MS-Off Ver
    2010
    Posts
    6

    Re: VBA to undo everything since last save

    The post has been modified as directed - very much would appreciate assistance.
    Last edited by pwbrown7333; 11-18-2021 at 04:43 PM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,706

    Re: VBA to undo everything since last save

    It is time for you to read our forum rules that you agreed to when you joined. Second offense in the day.


    crossposted: https://www.mrexcel.com/board/thread...a-vba.1188057/


    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. I have provided that link for you today.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    08-01-2018
    Location
    TN
    MS-Off Ver
    2010
    Posts
    6
    I will be canceling my registration with this and other sites. All I have seen on this site so far are multiple posts that go unanswered and more moderation than answers.

    Good luck to those that need help finding it here. Yes, 2nd thing found today as it appears all you do here is troll for issues vs trying to help resolve issues.

    Good bye

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 12-19-2019, 07:04 AM
  2. [SOLVED] Help save my 'Undo-o-o-o-o'!!
    By FlameRetired in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2014, 04:45 PM
  3. Undo Save?
    By buzzstpoint in forum Excel General
    Replies: 5
    Last Post: 11-02-2009, 01:34 PM
  4. [SOLVED] Undo a save action
    By John in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 02:30 PM
  5. [SOLVED] Excel should let me undo after a save
    By BillyB in forum Excel General
    Replies: 0
    Last Post: 01-16-2006, 12:10 PM
  6. [SOLVED] how do I undo a save?
    By Roadie in forum Excel General
    Replies: 2
    Last Post: 10-19-2005, 07:05 PM
  7. Undo save?
    By louisp in forum Excel General
    Replies: 1
    Last Post: 10-19-2005, 01:05 PM

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