#1   Report Post  
Greg B
 
Posts: n/a
Default Macro Question?

Is it possible to have excel change a macro after the first use? What I mean
is when once you save the workbook I have created a certain splash screen
will show instead of the other one?


Thanks in advance


Greg


  #2   Report Post  
gocush
 
Posts: n/a
Default

Have you left something out of your question?

"Greg B" wrote:

Is it possible to have excel change a macro after the first use? What I mean
is when once you save the workbook I have created a certain splash screen
will show instead of the other one?


Thanks in advance


Greg



  #3   Report Post  
Greg B
 
Posts: n/a
Default

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.


  #4   Report Post  
gocush
 
Posts: n/a
Default

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.



  #5   Report Post  
Mohamed Shafiee
 
Posts: n/a
Default

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.







  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Greg,

I would create a public Boolean variable, and set that after first run, and
when displaying the splash screen, check its status to see which to display.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B" wrote in message
...
Is it possible to have excel change a macro after the first use? What I

mean
is when once you save the workbook I have created a certain splash screen
will show instead of the other one?


Thanks in advance


Greg




  #7   Report Post  
Greg B
 
Posts: n/a
Default

Thank you everybody

Taken all tips

Thanks again

Greg


  #8   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

Why not delete the first form after it has shown. Design your code to check
for its existence and show the second if the first does not exist. Of
course the workbook would need to be saved after you delete the first form.

http://www.cpearson.com/excel/vbe.htm

--
Regards,
Tom Ogilvy


"Greg B" wrote in message
...
Thank you everybody

Taken all tips

Thanks again

Greg




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Question? Greg B Excel Discussion (Misc queries) 7 March 9th 05 01:08 PM
Excel Macro Question about Conditional Formatting David Britton via OfficeKB.com New Users to Excel 3 February 10th 05 02:23 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
Attn: Dave P. Question re Pix Calls via Macro DocuMike Excel Discussion (Misc queries) 1 January 10th 05 01:38 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"