PC Review


Reply
Thread Tools Rate Thread

Auto-Saving .XLA Code Changes?

 
 
PeteCresswell
Guest
Posts: n/a
 
      4th Jun 2008
I keep burning myself by not clicking File | Save after making changes
to VBA code in a .XLA.

Looked through the options, but couldn't find anything that would auto-
save any code changes - or at least prompt me.

Doesn't seem right - so I'm probably missing something.

Can anybody elucidate?
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      4th Jun 2008
One idea perhaps, while developping -

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If Not ThisWorkbook.Saved Then
If MsgBox("Do you want to save" & vbCr & _
ThisWorkbook.FullName, vbYesNo) = vbYes Then
Me.Save
End If
End If
End Sub

Regards,
Peter T

"PeteCresswell" <(E-Mail Removed)> wrote in message
news:8fbbefc5-06d3-4dfe-ad19-(E-Mail Removed)...
> I keep burning myself by not clicking File | Save after making changes
> to VBA code in a .XLA.
>
> Looked through the options, but couldn't find anything that would auto-
> save any code changes - or at least prompt me.
>
> Doesn't seem right - so I'm probably missing something.
>
> Can anybody elucidate?



 
Reply With Quote
 
PeteCresswell
Guest
Posts: n/a
 
      4th Jun 2008
On Jun 4, 11:18 am, "Peter T" <peter_t@discussions> wrote:
> One idea perhaps, while developping -


> If Not ThisWorkbook.Saved Then
> If MsgBox("Do you want to save" & vbCr & _
> ThisWorkbook.FullName, vbYesNo) = vbYes Then
> Me.Save
> End If
> End If
> End Sub


That's the ticket.

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Depart Auto code from forms code. Empi Microsoft Dot NET Compact Framework 3 13th Aug 2007 07:50 PM
RE: Auto Saving =?Utf-8?B?S2V2aW4gQg==?= Microsoft Excel Misc 0 31st Jan 2006 01:12 PM
Auto saving after changes. DuckMan2k Microsoft Excel Misc 4 21st Sep 2003 04:49 PM
Auto saving after changes. DuckMan2k Microsoft Excel Worksheet Functions 4 21st Sep 2003 04:49 PM
auto-updating an auto text field code value Glennard Lud Microsoft Word Document Management 1 10th Jul 2003 11:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 PM.