VBA

S

Simon

Does anyone know the VBA code for automatically opening a
user form when a document is opened?
 
D

Dave Lett

Hi Simon,

See the VBA help file for auto routines. For this, you'll probably want to
create an AutoOpen routine, as in the following:

Public Sub AutoOpen()
Load myUserFormName
myUserFormName.Show
End Sub

HTH,
Dave
 

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