ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how can i know the hidden by programming (https://www.excelbanter.com/excel-programming/291288-re-how-can-i-know-hidden-programming.html)

Tom Ogilvy

how can i know the hidden by programming
 
set rng = columns(1).SpecialCells(xlvisible)

rng will hold a reference to the cells in column 1 for the rows that are
visible.

You can then do

for each cell in rng
cell.offset(0,20).Value = rnd()
Next

as an example.

--
Regards,
Tom Ogilvy

<i wrote in message
...
how can i use the Excel.worksheet object to deterimine which row(column)

is hidden,so my program can process the data that is not hidden




All times are GMT +1. The time now is 07:22 PM.

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