Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 176
Default Macros Wont Run After Hiding Sheet

Hi

I run Excel 2K

I have a table on a wroksheet called SUPPORT SHEET.

I use the sheet for various purposes. eg, validation tables, lookup tables etc

On a different sheet I have a macro that copies data from the SUPPORT SHEET.
The macro works fine until I hide the SUPPORT SHEET, then the macro does not
work.

Is there a way I can hide the SUPPORT SHEET but the macro I use still work?


Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 245
Default Macros Wont Run After Hiding Sheet

Two options:

Sub test()

Application.ScreenUpdating = False
Worksheets("SUPPORT SHEET").Visible = True

'yourcode

Worksheets("SUPPORT SHEET").Visible = False
Application.ScreenUpdating = True
End Sub

OR, my preferred method is to change code so it refers to or updates the
sheet without activating or selecting the sheet or its content.

If you need more specific advice on the latter post further question/s.

--
Steve

"John Calder" wrote in message
...
Hi

I run Excel 2K

I have a table on a wroksheet called SUPPORT SHEET.

I use the sheet for various purposes. eg, validation tables, lookup tables
etc

On a different sheet I have a macro that copies data from the SUPPORT
SHEET.
The macro works fine until I hide the SUPPORT SHEET, then the macro does
not
work.

Is there a way I can hide the SUPPORT SHEET but the macro I use still
work?


Thanks

John


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 176
Default Macros Wont Run After Hiding Sheet

Steve

What you have given me will do. It works great...so well done !

and many thanks

John


"AltaEgo" wrote:

Two options:

Sub test()

Application.ScreenUpdating = False
Worksheets("SUPPORT SHEET").Visible = True

'yourcode

Worksheets("SUPPORT SHEET").Visible = False
Application.ScreenUpdating = True
End Sub

OR, my preferred method is to change code so it refers to or updates the
sheet without activating or selecting the sheet or its content.

If you need more specific advice on the latter post further question/s.

--
Steve

"John Calder" wrote in message
...
Hi

I run Excel 2K

I have a table on a wroksheet called SUPPORT SHEET.

I use the sheet for various purposes. eg, validation tables, lookup tables
etc

On a different sheet I have a macro that copies data from the SUPPORT
SHEET.
The macro works fine until I hide the SUPPORT SHEET, then the macro does
not
work.

Is there a way I can hide the SUPPORT SHEET but the macro I use still
work?


Thanks

John



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
security med-but still wont open with macros Ian Elliott Excel Discussion (Misc queries) 1 March 17th 09 11:10 PM
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


All times are GMT +1. The time now is 04:21 PM.

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"