ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determine upper visible corner of sheet (https://www.excelbanter.com/excel-programming/360574-determine-upper-visible-corner-sheet.html)

John Michl

Determine upper visible corner of sheet
 
Note: Thought I posted this over an hour ago but something must have
gone wrong. Advance apoligies if this turns out to be a double post.

I know how to find the address of the current "Active Cell". However,
sometimes the active cell is not visible on the screen. How can I
determine the upper left most visible cell (not including any cells
included in the frozen panes?

Basically, I'm trying to capture the row number of the visible row (not
necessarilly active) so that I can navigate across the sheet but keep
that row visible.

Any ideas?

Thanks,

John


Ivan Raiminius

Determine upper visible corner of sheet
 
Hi John,

try something like this:
application.Windows(1).VisibleRange.Address

regards,
Ivan


John Michl

Determine upper visible corner of sheet
 
Thanks, Ivan.

That did the trick.

- John



All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com