Kerouac Posted June 21, 2012 Report Share Posted June 21, 2012 Bom dia a todos!Através do VBA no Excel, é possível saber se determinada célula está visível na tela?Percebam que minha dúvida não é em relação a células ocultas ou visíveis (propriedade Hidden), mas apenas se a célula está visível na tela.Desde já agradeço e um abraço! Quote Link to comment Share on other sites More sharing options...
0 benzadeus Posted June 21, 2012 Report Share Posted June 21, 2012 Sub Exemplo() Dim b As Boolean Dim rng As Range Set rng = Range("A3") b = EstáVisível(rng) If b Then MsgBox "A célula " & rng.Address(0, 0) & " está visível na janela ativa." _ , vbInformation Else MsgBox "A célula " & rng.Address(0, 0) & " não está visível na janela ativa." _ , vbInformation End If End Sub Function EstáVisível(rng As Range) As Boolean EstáVisível = Not Intersect(rng, ActiveWindow.VisibleRange) Is Nothing End Function Quote Link to comment Share on other sites More sharing options...
0 Walace.Teixeira Posted September 18, 2014 Report Share Posted September 18, 2014 como eu faço um post para pedir ajuda !? não sei fazer ... Quote Link to comment Share on other sites More sharing options...
Question
Kerouac
Bom dia a todos!
Através do VBA no Excel, é possível saber se determinada célula está visível na tela?
Percebam que minha dúvida não é em relação a células ocultas ou visíveis (propriedade Hidden), mas apenas se a célula está visível na tela.
Desde já agradeço e um abraço!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.