hiding macros

G

GregJG

even though I use this code

Private Sub Workbook_Open()
Application.ScreenUpdating = False
Run ("sorta")
Application.ScreenUpdating = True
End Sub

I still see the macro run?

I thought it might be in userform_initialize

Application.ScreenUpdating = False
With Me
.Top = Application.Top
.Left = Application.Left
.Height = Application.Height
.Width = Application.Width
End With
cboRep.SetFocus
Application.ScreenUpdating = True
End Sub


but still I see the other workbook open.


any help
 
V

Vasant Nanavati

You probably need to set ScreenUpdating to False *after* the:

cboRep.SetFocus

line, and not in the Workbook_Open event, depending on what you are trying
to do (which is not entirely clear).
 

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