auto opening

  • Thread starter Thread starter 4ndy
  • Start date Start date
4

4ndy

can someone help me with my code?

Sub auto_open()
'
' auto_open Macro
' Macro recorded 03/10/2004 by J
'

'
With ActiveWindow
Application.Caption = "Siha Insurance Services Ltd"
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
Application.CommandBars("Standard").Visible = False
Application.CommandBars("Formatting").Visible = False
End Sub

i want excel to also open userform1 at startup and i am not sure ho
could someone please help with this code
 
Something like:

With Application
..Caption = "Siha Insurance Services Ltd"
..CommandBars("Standard").Visible = False
..CommandBars("Formatting").Visible = False
End With
With ActiveWindow
..DisplayGridlines = False
..DisplayHeadings = False
..DisplayVerticalScrollBar = False
..DisplayWorkbookTabs = False
End With
Load UserForm1
UserForm1.Show

Regards

Trevor
 

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

Back
Top