ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Function that returns if a given cell is visible or not in a filteredrange (https://www.excelbanter.com/excel-programming/432070-function-returns-if-given-cell-visible-not-filteredrange.html)

vsoler[_2_]

Function that returns if a given cell is visible or not in a filteredrange
 
I would like the IsVisible(A3) function that returns 1 for visible
or 0 for hidden.

I am talking of a filtered range.

Can anybody help?

Thank you

Barb Reinhardt

Function that returns if a given cell is visible or not in a filte
 
This should be fairly easy to write. Use the functionality

Function IsVisible(myRange as excel.range) as boolean
IsVisible = False
'Ideas here only
if myrange .count = 1 then
IsVisible =not myrange.entirerow.hidden
else 'what would you do if you entered more than one cell

end if


end function

"vsoler" wrote:

I would like the IsVisible(A3) function that returns 1 for visible
or 0 for hidden.

I am talking of a filtered range.

Can anybody help?

Thank you


vsoler[_2_]

Function that returns if a given cell is visible or not in afilte
 
On 5 ago, 21:46, Barb Reinhardt
wrote:
This should be fairly easy to write. * Use the functionality

Function IsVisible(myRange as excel.range) as boolean
IsVisible = False
'Ideas here only
if myrange .count = 1 then
* * IsVisible =not *myrange.entirerow.hidden
else *'what would you do if you entered more than one cell

end if

end function

"vsoler" wrote:
I would like the * IsVisible(A3) *function that returns 1 for visible
or 0 for hidden.


I am talking of a filtered range.


Can anybody help?


Thank you


I am going to try it.

Thank you very much


All times are GMT +1. The time now is 02:22 AM.

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