Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default running macros on hidden sheets?

Hi,
I have completed my project and have 6 hidden sheets but have macros running
off the main visible sheet that manipulate data on the hidden sheets,
everything runs ok with the sheets unhidden, but as soon as I hide the
sheets none of my macros work? How can I have the sheets hidden and still
have the macros functioning?

cheers

Jamie

--


---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://www.giantcompany.com



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default running macros on hidden sheets?

Hi Jamie,

There are some things you can't do with hidden sheets. Namely select or
activate them. If you are using the Select or Activate method in your code,
you'll have to remove those. An example:

Sheets("Sheet1").Select
Sheets("Sheet1").Range("A1").Select
MsgBox Activecell.Value

becomes:

MsgBox Sheets("Sheet1").Range("A1").Value

--
Regards,

Jake Marx
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


hammer wrote:
Hi,
I have completed my project and have 6 hidden sheets but have macros
running off the main visible sheet that manipulate data on the hidden
sheets, everything runs ok with the sheets unhidden, but as soon as I
hide the sheets none of my macros work? How can I have the sheets
hidden and still have the macros functioning?

cheers

Jamie


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
Macro running against hidden worksheet George Excel Discussion (Misc queries) 1 July 23rd 07 09:42 PM
Re-running an AutoFilter filter when applied to a hidden column .. RWilliams Excel Worksheet Functions 0 April 25th 07 05:00 PM
Running Macros Links and Linking in Excel 3 July 13th 06 11:30 PM
Running Macros Excel Discussion (Misc queries) 1 July 6th 06 04:21 PM
Running Macros Excel Worksheet Functions 0 July 6th 06 03:42 PM


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

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

About Us

"It's about Microsoft Excel"