Results 1 to 7 of 7

Save workbook when user makes changes

Threaded View

  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

    Private Sub Workbook_Change(ByVal Target As Workbook)
    
        Dim icol As Long
         If Not Intersect(Target, Workbook) Is Nothing Then
        ThisWorkbook.save
         MsgBox "Workbook Saved At " & Format(Now, "m/d/yy"), vbInformation
    
    
    
    End Sub
    Last edited by James12; 09-25-2009 at 03:19 PM. Reason: found problem was not expceting

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