Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default How to find out when you are near the top of a worksheet

Hi,

I have a worksheet which I am populating with graphics...I want to detect
when I am say 10 rows from the top of the chart so I can rescale; I know
there is a rows property and one can have rows(1) or some such but how would
I code that I want to detect what row number I am from the top, anyone know,
thanks for your help, regards, Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default How to find out when you are near the top of a worksheet

The TopLeftCell property of the object:

Sub PixRow()
Dim PixRw As Long

PixRw = Sheet1.Pictures(1).TopLeftCell.Row
End Sub

Mike F
"Mark Stephens" wrote in message
...
Hi,

I have a worksheet which I am populating with graphics...I want to detect
when I am say 10 rows from the top of the chart so I can rescale; I know
there is a rows property and one can have rows(1) or some such but how
would I code that I want to detect what row number I am from the top,
anyone know, thanks for your help, regards, Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default How to find out when you are near the top of a worksheet

Thanks Mike, much appreciated, kind regards, Mark

"Mike Fogleman" wrote in message
. ..
The TopLeftCell property of the object:

Sub PixRow()
Dim PixRw As Long

PixRw = Sheet1.Pictures(1).TopLeftCell.Row
End Sub

Mike F
"Mark Stephens" wrote in message
...
Hi,

I have a worksheet which I am populating with graphics...I want to detect
when I am say 10 rows from the top of the chart so I can rescale; I know
there is a rows property and one can have rows(1) or some such but how
would I code that I want to detect what row number I am from the top,
anyone know, thanks for your help, regards, Mark





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
Find tab in worksheet Rodney Excel Discussion (Misc queries) 3 March 9th 10 04:54 AM
how to find and unlink current worksheet from old worksheet kmjmail Excel Discussion (Misc queries) 3 January 12th 09 10:52 PM
Find Worksheet Carlos Excel Programming 3 February 15th 08 02:27 PM
Find a Worksheet Anice Excel Programming 9 June 27th 06 02:14 PM
Find a worksheet Luis Excel Programming 1 August 6th 04 11:45 AM


All times are GMT +1. The time now is 10:32 PM.

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"