View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JVS JVS is offline
external usenet poster
 
Posts: 5
Default Auto Open question

Thank you very much, it works fine!
Have a happy holiday!

Johnny

"Bill Manville" wrote in message
...
Jvs wrote:
Can someone tell me how automatically open a form in workbook 2 then
properly exit the form and workbook so that the hyperlink in workbook1

will
still work with out having to exit Excel?


I would suggest reducing Workbook_Open to

Private Sub Workbook_Open()
Application.OnTime Now, "ShowTheForm"
End Sub

With, in a standard module

Sub ShowTheForm()
ThisWorkbook.Windows(1).WindowState = xlMinimized
Load UserForm1
UserForm1.Show
End Sub


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup