Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Macros mrbalaje Excel Discussion (Misc queries) 2 April 18th 05 08:11 AM
Hiding Macros PCn Excel Discussion (Misc queries) 0 February 17th 05 03:47 PM
Hiding macros Kristanna Excel Programming 2 March 7th 04 04:24 AM
Hiding my macros Pike Excel Programming 1 November 12th 03 09:49 PM
Hiding macros Torbjörn Steijer Excel Programming 2 November 3rd 03 09:09 PM


All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"