Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default What variable controls wheatehr a cell is visible?

Hi

If a cell is invisible is there something along the lines
ActiveCell.(Blank) = False I can check for?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What variable controls wheatehr a cell is visible?

If the cell is invisible it is either in a row that is hidden or a
column that is hidden. If you know exactly what cell you’re looking
for then you can check both.

Worksheets(1).Row(5).Hidden = False
Worksheeds(1).Columns(“D”).Hidden = False

- Pikus


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default What variable controls wheatehr a cell is visible?

If ActiveCell.EntireRow.Hidden then


demo'd from the immediate window in the VBE:

? ActiveCell.Address
$B$24
? ActiveCell.EntireRow.Hidden
False
activecell.EntireRow.Hidden = True
? activeCell.EntireRow.Hidden
True

--
Regards,
Tom Ogilvy


"pikus " wrote in message
...
If the cell is invisible it is either in a row that is hidden or a
column that is hidden. If you know exactly what cell you're looking
for then you can check both.

Worksheets(1).Row(5).Hidden = False
Worksheeds(1).Columns("D").Hidden = False

- Pikus


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default What variable controls wheatehr a cell is visible?

Finally I wrote the function I wanted all along:

Private Function IncrimentNext()
ActiveCell.Offset(1, 0).Select
If ActiveCell.EntireRow.Hidden Then
Call IncrimentNext
End If
End Function

Thnx
-----Original Message-----
If ActiveCell.EntireRow.Hidden then


demo'd from the immediate window in the VBE:

? ActiveCell.Address
$B$24
? ActiveCell.EntireRow.Hidden
False
activecell.EntireRow.Hidden = True
? activeCell.EntireRow.Hidden
True

--
Regards,
Tom Ogilvy


"pikus " wrote in

message
...
If the cell is invisible it is either in a row that is

hidden or a
column that is hidden. If you know exactly what cell

you're looking
for then you can check both.

Worksheets(1).Row(5).Hidden = False
Worksheeds(1).Columns("D").Hidden = False

- Pikus


---
Message posted from http://www.ExcelForum.com/



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default What variable controls wheatehr a cell is visible?

That does a recusive call which is fine, but it is easily done with a loop

Private Function IncrimentNext()
Do
ActiveCell.Offset(1,0).Select
Loop Until Not ActiveCell.EntireRow.Hidden
End Function


--
Regards,
Tom Ogilvy



wrote in message
...
Finally I wrote the function I wanted all along:

Private Function IncrimentNext()
ActiveCell.Offset(1, 0).Select
If ActiveCell.EntireRow.Hidden Then
Call IncrimentNext
End If
End Function

Thnx
-----Original Message-----
If ActiveCell.EntireRow.Hidden then


demo'd from the immediate window in the VBE:

? ActiveCell.Address
$B$24
? ActiveCell.EntireRow.Hidden
False
activecell.EntireRow.Hidden = True
? activeCell.EntireRow.Hidden
True

--
Regards,
Tom Ogilvy


"pikus " wrote in

message
...
If the cell is invisible it is either in a row that is

hidden or a
column that is hidden. If you know exactly what cell

you're looking
for then you can check both.

Worksheets(1).Row(5).Hidden = False
Worksheeds(1).Columns("D").Hidden = False

- Pikus


---
Message posted from http://www.ExcelForum.com/



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What variable controls wheatehr a cell is visible?

Nice idea. Thanks Tom. - Piku

--
Message posted from http://www.ExcelForum.com

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
ASAP-Apply sequential cell links to different controls simultaneou Hubitron2000 Excel Discussion (Misc queries) 0 March 17th 06 05:07 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
Linked Cell Property In Activex controls KG Excel Discussion (Misc queries) 4 February 26th 05 10:37 PM
Autoshapes not visible on spreadsheet but visible in print preview John Excel Discussion (Misc queries) 3 February 11th 05 10:23 PM
Toggle Text in a column to be visible or not visible Dave Y[_3_] Excel Programming 4 January 8th 04 08:46 PM


All times are GMT +1. The time now is 11:48 PM.

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"