+ Reply to Thread
Results 1 to 7 of 7

Save workbook when user makes changes

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    Wilkie, Saskatchewan
    MS-Off Ver
    Excel 2003
    Posts
    21

    Save workbook when user makes changes

    I wrote a code that is suppose to save the workbook every time a change is made but so far I have been unsuccessful at getting it to work. The workbook contians 7 worksheets.
    This is the code I wrote to try and accomplish this task

    Please Login or Register  to view this content.
    Last edited by James12; 09-25-2009 at 03:19 PM. Reason: found problem was not expceting

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Save workbook when user makes changes

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Save workbook when user makes changes

    Thanks.
    Please Login or Register  to view this content.
    Adding Code to the ThisWorkbook module in Excel 2003
    1. Copy the code from the post
    2. In the Excel window, right-click on the Excel logo in the upper-left corner and select View Code. This opens the Visual Basic Editor (VBE) and shows the object module for the workbook.
    3. Paste the code in that window
    4. Close the VBE to return to Excel

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    Wilkie, Saskatchewan
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Save workbook when user makes changes

    Is there any I can add a vbokcancel that cancel will undo changes before saving

    this what i changed the code to

    Please Login or Register  to view this content.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Save workbook when user makes changes

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-07-2009
    Location
    Wilkie, Saskatchewan
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Save workbook when user makes changes

    The save works great but now when i delete a row it will not allow me to select shift row option when deleting rows, allow it wil do is delete entire row.
    Last edited by James12; 09-25-2009 at 01:57 PM.

  7. #7
    Registered User
    Join Date
    07-07-2009
    Location
    Wilkie, Saskatchewan
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Save workbook when user makes changes

    This solved problem is with the workbooking shared. Thanks Again for your help.

+ 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