View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michel Pierron[_2_] Michel Pierron[_2_] is offline
external usenet poster
 
Posts: 63
Default Backup macro running twice

Hi jsollman,
You can try:
ActiveWorkbook.SaveCopyAs ("s:\shared machining\backup\S-Bay FinishPaint.xls")
MP

"jsollman " a écrit dans le message de
...
I have a user form that pops up to ask the user if they want to back up
their file after seven days. Everything works great except the form
pops up twice no matter if they chose yes, no, or cancel.
here is the "yes" code.

Private Sub CommandButton1_Click()
Unload Me
Application.DisplayAlerts = False

ActiveWorkbook.Save
ActiveWorkbook.SaveAs ("s:\shared machining\backup\S-Bay Finish
Paint.xls")
Application.DisplayAlerts = True

ActiveWorkbook.Close
End Sub

thanks for the help
--Jeffery


---
Message posted from http://www.ExcelForum.com/