#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Macro Help

How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Macro Help

Always nice to start a new thread with YOUR question instead of hijacking an
old one. Also, always nice to show us your code for comments. I suspect that
you have code that is SELECTING the sheet when it probably isn't necessary.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jeremy" wrote in message
...
How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Macro Help

The code has to go to the hidden sheet. I figured it out. Thanks you for
the imput.


"Don Guillett" wrote:

Always nice to start a new thread with YOUR question instead of hijacking an
old one. Also, always nice to show us your code for comments. I suspect that
you have code that is SELECTING the sheet when it probably isn't necessary.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jeremy" wrote in message
...
How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Macro Help

How exactly are you referring to the cell in the macro? (code please!)

Could always try something like:

Application.ScreenUpdating = False
Sheets("YourSheet").Visible = xlVisible

'rest of code goes here

Sheets("YourSheet").Visible = xlVeryHidden
Application.ScreenUpdating = True
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jeremy" wrote:

How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Macro Help

This is what I was needing. Thank you for your help.

"Luke M" wrote:

How exactly are you referring to the cell in the macro? (code please!)

Could always try something like:

Application.ScreenUpdating = False
Sheets("YourSheet").Visible = xlVisible

'rest of code goes here

Sheets("YourSheet").Visible = xlVeryHidden
Application.ScreenUpdating = True
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jeremy" wrote:

How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Macro Help

I appreciate the advise from an expert. With what I was trying to accomplish
my code had to be written the way it was. I have fiexed the code so it works
with a hidden sheet. Thanks again for your opinions.

"Don Guillett" wrote:

You probably could have and SHOULD have used code that did not require
SELECTING. You should try to learn how to do it properly.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jeremy" wrote in message
...
This is what I was needing. Thank you for your help.

"Luke M" wrote:

How exactly are you referring to the cell in the macro? (code please!)

Could always try something like:

Application.ScreenUpdating = False
Sheets("YourSheet").Visible = xlVisible

'rest of code goes here

Sheets("YourSheet").Visible = xlVeryHidden
Application.ScreenUpdating = True
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jeremy" wrote:

How do you run a macro when a reference is on a supper hidden sheet. I
am
getting an error if it is hidden. If not it works.

Thanks



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Macro Help

Code can operate on veryhidden sheets.

Post your code.


Gord Dibben MS Excel MVP

On Tue, 1 Sep 2009 06:47:02 -0700, Jeremy
wrote:

How do you run a macro when a reference is on a supper hidden sheet. I am
getting an error if it is hidden. If not it works.

Thanks


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
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM


All times are GMT +1. The time now is 01:25 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"