Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Address of first visible cell

How can I determine the address of the first visible cell in the active
worksheet?

That is the cell in the top, left-hand, corner that is visible in the
worksheet's current, scrolled, state?

Thanks for any help or suggestions
--
jake
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Address of first visible cell

Hi Jake,

Try:


'=============
Public Sub Tester()
Dim Rng As Range

Set Rng = ActiveWindow.VisibleRange.Cells(1)
MsgBox Rng.Address

End Sub
'<<=============


---
Regards,
Norman


"Jakobshavn Isbrae" wrote in
message ...
How can I determine the address of the first visible cell in the active
worksheet?

That is the cell in the top, left-hand, corner that is visible in the
worksheet's current, scrolled, state?

Thanks for any help or suggestions
--
jake



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Address of first visible cell

Perfect - thank you very much.
--
jake


"Norman Jones" wrote:

Hi Jake,

Try:


'=============
Public Sub Tester()
Dim Rng As Range

Set Rng = ActiveWindow.VisibleRange.Cells(1)
MsgBox Rng.Address

End Sub
'<<=============


---
Regards,
Norman


"Jakobshavn Isbrae" wrote in
message ...
How can I determine the address of the first visible cell in the active
worksheet?

That is the cell in the top, left-hand, corner that is visible in the
worksheet's current, scrolled, state?

Thanks for any help or suggestions
--
jake




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to address first visible cell in Column "D" after filtering EagleOne Excel Discussion (Misc queries) 2 December 11th 06 05:22 PM
Autofilter: jump from visible row to visible row by command button [email protected] Excel Programming 0 November 4th 06 09:04 PM
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. Oscar Excel Programming 6 June 21st 05 10:39 PM
Autoshapes not visible on spreadsheet but visible in print preview John Excel Discussion (Misc queries) 3 February 11th 05 10:23 PM
Toggle Text in a column to be visible or not visible Dave Y[_3_] Excel Programming 4 January 8th 04 08:46 PM


All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"