Open User Form with spreadsheet

  • Thread starter Thread starter sunspot27
  • Start date Start date
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
 
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.
 
Back
Top