Thread: Macro Question?
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
Mohamed Shafiee[_2_] Mohamed Shafiee[_2_] is offline
external usenet poster
 
Posts: 1
Default Macro Question?

Or

Sub OpenMyForm()
If ActiveWorkbook.Saved Then
UserForm1.Show
End If
End Sub

"gocush" /delete wrote in message
...
Does something like this work:

Option Explicit

Sub OpenMyForm()
If Not Range("A1") = "Don't Open" Then
UserForm1.Show
End If
End Sub


With the userform code:

Private Sub UserForm_Initialize()

Range("A1") = "Don't Open"

End Sub


"Greg B" wrote:

No, I am asking is it possible to cancel a userform that starts on
loading a
form for the first time and is it possilble to make a macro to stop this
userform from loading again.