Open User Form with spreadsheet

S

sunspot27

Can someone help me out with this?

I need a User form to open wen i open a spreadsheet. Does anyone know
how to do this?
Also I need to hide the spreadsheet such that only the user form open
when try to open the spreadsheet.

Thanks
 
B

Bob Phillips

Private Sub Worksheet_Activate()
UserForm1.Show
End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top