Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hiding Ranges

I am developing an application with a large number of named ranges.
Dependant upon a given scenario, I want to be able to hide the ranges
irrelevant to the particular case.
I have previously achieved this in similar applications by simply specifying
the rows.
i.e. Rows("27:30").Hidden = True/False.

However in this instance I need to be able to regularly add rows to the
ranges in regular use, and I don't want to have to go and edit all my macros
every time I add an item.

The following doesn't work: Range("TPS").Hidden = True

Does anyone know the syntax needed to hide/show a range which is specified
by name?

Regards
R. Gavey



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Hiding Ranges

Hi Richard

This should work for you:

Range("TPS").EntireRow.Hidden = True

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Richard Gavey" wrote in message
...
I am developing an application with a large number of named ranges.
Dependant upon a given scenario, I want to be able to hide the ranges
irrelevant to the particular case.
I have previously achieved this in similar applications by simply

specifying
the rows.
i.e. Rows("27:30").Hidden = True/False.

However in this instance I need to be able to regularly add rows to the
ranges in regular use, and I don't want to have to go and edit all my

macros
every time I add an item.

The following doesn't work: Range("TPS").Hidden = True

Does anyone know the syntax needed to hide/show a range which is specified
by name?

Regards
R. Gavey





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hiding Ranges

Try this

Range("TPS").EntireRow.Hidden = Tru

Regards
Sid DeLuc


----- Richard Gavey wrote: ----

I am developing an application with a large number of named ranges
Dependant upon a given scenario, I want to be able to hide the range
irrelevant to the particular case
I have previously achieved this in similar applications by simply specifyin
the rows
i.e. Rows("27:30").Hidden = True/False

However in this instance I need to be able to regularly add rows to th
ranges in regular use, and I don't want to have to go and edit all my macro
every time I add an item

The following doesn't work: Range("TPS").Hidden = Tru

Does anyone know the syntax needed to hide/show a range which is specifie
by name

Regard
R. Gave




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hiding Ranges

Thanks very much for help


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 zero for a sum bb Excel Discussion (Misc queries) 3 April 20th 10 03:01 PM
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
Hiding #N/A FP Novice Excel Discussion (Misc queries) 1 August 7th 06 09:49 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


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