Making a form show on startup but only the first time

Simmerin

New Member
Joined
Jun 24, 2011
Messages
20
I am new to VB so be nice ;). I have a form that shows up when you open a workbook, but I only want it to show up the first time the template is opened. If you go back to review the file i dont want it to pop up is that at all possible? Maybe even a radio button you code to make this happen?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hello

Very easy would be to put a 1 in a certain cell, a named range or even a property of the workbook (somewhat less easy).
 
Upvote 0
Is there a way to maybe put a "do not show this box again" check box like a windows application would do? Plus i dont know how to code what you are suggesting....VERY new to VB hehe.....most of what i have a found guides on and just modified them.
 
Upvote 0
Then add a checkbox to the userform. Let's say you name it chkShowAgain.

Then, you write to a certain cell the choice of the user:

Code:
ThisWorkbook.Sheets("Sheet1").Range("A1") = me.chkShowAgain.Value

The event Thisworkbook.Open will then have an IF statement:

Code:
If ThisWorkbook.Sheets("Sheet1").Range("A1") = True Then
'code to show the userform
End If

But the userform will never come up again once it was turned off using the checkbox...
 
Upvote 0
thank you much! I'll try it out. This is basically a one time place data where it needs to go to do your initial setup so i really only need it once. I placed a macro on the front page so if i need it again i have access. Thanks!
 
Upvote 0
Works Perfectly! Thanks Wigi! I did have to change the if to = false though, otherwise it did opposite what i wanted :stickouttounge:
 
Upvote 0
Works Perfectly! Thanks Wigi! I did have to change the if to = false though, otherwise it did opposite what i wanted :stickouttounge:

Depends on how you phrase the text next to the checkbox :-D
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top