Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
hiding macros
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 -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
hiding macros
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). -- Vasant "GregJG " wrote in message ... 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? --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hiding Macros | Excel Discussion (Misc queries) | |||
Hiding Macros | Excel Discussion (Misc queries) | |||
Hiding macros | Excel Programming | |||
Hiding my macros | Excel Programming | |||
Hiding macros | Excel Programming |