View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Before_Save IS KILLING ME

Paige,

Reduce your BeforeSave event procedure and let us know if it the message box
appears:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
msgbox "The messagebox statement works..."
End Sub

--
Jay


"Paige" wrote:

I never get any error messages (and don't have any on error resume next).
When I step thru the code via breakpoint, it just goes over to the
before_save and thru all the lines of code, but doesn't act on them. Am at a
loss.

"Jim Thomlinson" wrote:

If you have On Error Resume Next comment it out to see if you are generating
errors that are being ignored...
--
HTH...

Jim Thomlinson


"Paige" wrote:

I have a regular sub where the user is given the option to save; if they
enter a filename, then I want Excel to go to a specific tab and copy the
values from one range and paste to another range (same tab) prior to the
save. Excel gets over to the before save sub in ThisWorkbook okay, but it
does none of the events in the before save sub. I've put in breakpoints, and
when stepping through, it just goes through the lines of code in the before
save sub, but doesn't actually act on any of them, like it went into a coma.
I'm at my wits end as to why this is happening; have tried everything I can
think of, but still it does not work. Enable events is on. Can someone
enlighten me PLEASE???