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


Hi,

I need a line of code that means this sudo code:

if 'cell is not hidden' then

end if




thx a lo

--
kanuva
-----------------------------------------------------------------------
kanuvas's Profile: http://www.excelforum.com/member.php...fo&userid=2791
View this thread: http://www.excelforum.com/showthread.php?threadid=48484

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hidden cell problem

Dim cell as Range
set cell = Range("B9")
if cell.EntireRow.Hidden = False then

End if

if you mean the cell is in a row that is not hidden. for a column, change
EntireColumn.Hidden = False

if you mean the formula is hidden under format =cells, protection tab

if cell.formulaHidden = False then

end if

--
Regards,
Tom Ogilvy

"kanuvas" wrote in
message ...

Hi,

I need a line of code that means this sudo code:

if 'cell is not hidden' then

end if




thx a lot


--
kanuvas
------------------------------------------------------------------------
kanuvas's Profile:

http://www.excelforum.com/member.php...o&userid=27911
View this thread: http://www.excelforum.com/showthread...hreadid=484849



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Hidden cell problem

Try something like the following:

If Range("B2").EntireRow.Hidden = True Then
MsgBox "Hidden"
Else
MsgBox "Not hidden"
End If

' or

If Range("B2").EntireColumn.Hidden = True Then
MsgBox "Hidden"
Else
MsgBox "Not hidden"
End If



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"kanuvas"
wrote in message
...

Hi,

I need a line of code that means this sudo code:

if 'cell is not hidden' then

end if




thx a lot


--
kanuvas
------------------------------------------------------------------------
kanuvas's Profile:
http://www.excelforum.com/member.php...o&userid=27911
View this thread:
http://www.excelforum.com/showthread...hreadid=484849



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
Hidden Column A Problem G Excel Discussion (Misc queries) 2 March 4th 10 04:30 PM
Problem - hidden cell names in worksheet Bigger Excel Worksheet Functions 2 February 1st 10 03:18 PM
Hidden sheet problem Freshman Excel Worksheet Functions 0 October 23rd 07 03:17 PM
Problem with Hidden Worksheet Shatin[_2_] Excel Programming 4 September 4th 05 07:01 AM
Problem cuz of Hidden sheet helmekki[_70_] Excel Programming 2 June 12th 05 11:45 PM


All times are GMT +1. The time now is 04:01 AM.

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"