open excel file into a form

R

Rick Sanderson

Hi,
another simple one i suspect,
when i open an excel file i want my form to open automatically.

thanks
Rick
 
D

Dave Peterson

Your form is a userform?

In a general module:

option Explicit
sub auto_Open()
userform1.show
end sub

(Or you could use the workbook_open event under ThisWorkbook.)
 

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