How to determine if a worksheet Cell is Visible/Displayed in VBA?
问题 I need to find if a cell is visible on the screen. By visible, I don't mean hidden. I am specifically trying to find if a cell is currently displayed in the active sheet, or if it is not displayed, ie: it has been scrolled off of the visible active sheet. I have looked online, and can only find the following code which doesn't seem to work for me: Private Sub CommandButton1_Click() With Worksheets(1).Cells(10, 10) 'MsgBox "Value: " & .Value & ", Top: " & .Top & ", Left: " & .Left Dim