Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Im working on a file, the macro's must be actived. If not, the use should see the "errorsheet". I guess this should be the "openingspage of the file. If the macro's are activated, the sheet Welcome i selected. So far so good. But, the screen blinks and that is not what I want. Is there solution? Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.ScreenUpdating = False Sheets("Error").Visible = True Sheets("Error").Select Sheets("Welkom").Visible = xlSheetVeryHidden ActiveWorkbook.Save Application.ScreenUpdating = True End Sub Private Sub Workbook_Open() Application.ScreenUpdating = False Sheets("Welkom").Visible = True Sheets("Welkom").Select Sheets("Error").Visible = xlSheetVeryHidden Application.ScreenUpdating = True End Su -- jgmidde ----------------------------------------------------------------------- jgmiddel's Profile: http://www.excelforum.com/member.php...fo&userid=3271 View this thread: http://www.excelforum.com/showthread.php?threadid=52546 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide Macro's in Toolbar / Macro's list | Excel Discussion (Misc queries) | |||
getting activated userform name | Excel Programming | |||
macro's run but spread sheet does not updata | Excel Programming | |||
how to go the the next row when autofilter is activated | Excel Programming | |||
VBA - Left Shift to be Activated when Sheet is selected. | Excel Programming |