ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hiding rows (https://www.excelbanter.com/excel-programming/318104-hiding-rows.html)

ChiragP

Hiding rows
 
Hi I'm hoping that someone can help.

How can I hide a row in a range.

I have a column T, and in this colum each row either has a number or hide.
Can someone please let me know what the code is to hide the rows that have
"hide" in them

Thanks

Don Guillett[_4_]

Hiding rows
 
couple of ways
sorthide

for each c
if ucase(c)="HIDE" then c.entirerow.hidden=true
next c
--
Don Guillett
SalesAid Software

"ChiragP" wrote in message
...
Hi I'm hoping that someone can help.

How can I hide a row in a range.

I have a column T, and in this colum each row either has a number or hide.
Can someone please let me know what the code is to hide the rows that have
"hide" in them

Thanks




Rob

Hiding rows
 
try this:
for each cEl in range("T:T")
if cEl="Hide" then
cEl.entirerow.hidden=true
end if
next



"ChiragP" wrote:

Hi I'm hoping that someone can help.

How can I hide a row in a range.

I have a column T, and in this colum each row either has a number or hide.
Can someone please let me know what the code is to hide the rows that have
"hide" in them

Thanks



All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com