Home » excel » Excel: determine the current display area

Excel: determine the current display area

Posted by: admin May 14, 2020 Leave a comment

Questions:

Is there a way to determine the Excel’s current display area? This is in full screen mode. What I’m after is a range, something like K2:AA20.

How to&Answers:

You need VBA:

Sub get_visibble_range()
Dim r As Range
Set r = Application.ActiveWindow.VisibleRange
Debug.Print (r.Address)
End Sub