Visible Row?

D

Darin Kramer

Howdie...

Is it possible to write a formulae to tell whether a row a7 in this eg,
is visible or not?

I hide it or unhide it depending on what a user selects.

I know want to run something else depending if it is hidden or not...
and the user needs to be able to alter his choice....

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
J

JulieD

Hi Darin

something along the following lines

Sub testvisible()
If Rows(7).Hidden = True Then
MsgBox "hidden"
Else
MsgBox "not hidden"
End If
End Sub

Cheers
JulieD
 
T

Tom Ogilvy

Sub XXX()
If Range("A7").EntireRow.Hidden Then
MsgBox "The row is hidden"
Else
MsgBox "the row is visible"
End If

End Sub

is a start. You don't say how a user is given a choice or how to determine
what the user's choice is.
 
D

Darin Kramer

Howdie...

Thanks... I put it into a VBA module, but where do I see the result....?

In a cell type =testvisible ??

Regards

D


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
J

JulieD

Hi Darin

choose in the workbook tools / macro / macros and click on testvisible and
choose run - a message box will be displayed.

I understood that you wanted to use this test inside some code you already
had ... rather than in a cell ... did i misunderstand?

Cheers
julieD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Is row visible? 2
Data Form 1
Nested if....? 1
Sum IF 3
Summing N/A's 5
Sheets - Limited acces 4
Why no cell wrap...? 1
If...and... - can never get the syntax correct! 12

Top