Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Obtain an objects current location

Hi

I would like to be able to obtain an objects current location so that it can
be automatically moved based on its current position.

Can you get an objects current X and Y location in points? If so what is the
command?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Obtain an objects current location

A Shape, Chart and OLEobject have a TopLeftCell property.
--
Jim Cone
Portland, Oregon USA


"Jive"

wrote in message
...
Hi
I would like to be able to obtain an objects current location so that it can
be automatically moved based on its current position.
Can you get an objects current X and Y location in points? If so what is the
command?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Obtain an objects current location

Activesheet.drawingobjects("Rectangle 1").Top
Activesheet.drawingobjects("Rectangle 1").Left

or use the index number as
Activesheet.drawingobjects(1).Top

If this post helps click Yes
---------------
Jacob Skaria


"Jive" wrote:

Hi

I would like to be able to obtain an objects current location so that it can
be automatically moved based on its current position.

Can you get an objects current X and Y location in points? If so what is the
command?


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
Why objects inserted in excel move to different location in print Marwa Excel Discussion (Misc queries) 1 June 16th 09 02:27 PM
How to obtain current selection using C++ JoeLiuzzo Excel Programming 0 January 10th 09 12:05 AM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
Obtain current RGB settings for color indexes 17 thru 27 quartz[_2_] Excel Programming 7 April 18th 05 10:45 PM
how can one obtain the current selected cell value Susan Hayes Excel Programming 3 December 14th 04 10:31 AM


All times are GMT +1. The time now is 07:16 AM.

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

About Us

"It's about Microsoft Excel"