ActiveWindows.visibleRange(5,4)
assume that rows 1 - 7 are scrolled out of site and row 8 is frozen
further, columns A-C are scrolled out of site and column D is frozen
this puts E9 as the upper left corner of the visible range.
then
? activeWindow.visiblerange.address
$E$9:$Q$46
? activeWindow.VisibleRange(5,4).Address
$H$13
Just note that the (5,4) will be relative to the upper left corner of the
visible range and would be different if user scrolls.
--
Regards,
Tom Ogilvy
"Finny" wrote:
> I have a sheet that toggles hidden values of certain rows and columns
> to accommodate the views of data for different users.
> Trouble is, in addition to this, some rows are permanently hidden as
> once they are too old - but not deleted to keep as reference.
> In each of the views, position of the freeze panes is different.
> Always in the same position in the eyes of the user, but a different
> cell every time an old row becomes hidden.
>
> In a nutshell, with a sheet with unknown hidden rows/columns, how
> could you pinpoint position (5,4) according to what you see, not what
> is both shown and hidden?
>
> thanks in advance and I hope that is clear enough
>
>
|