Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default how to show the position of shapes like "rectangle"

hi, anyone help me pls.
I try to create a simple game for leader by using excel. I create ten
rectangle boxes. And individual moving box in each time I need to check the
position of the rectangle box which is wrong or correct?

Here is my code :

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("a1").Value = Shapes("rectangle 1").Left
Range("b1").Value = Shapes("rectangle 1").Top
End Sub

if I use that code I have to click on the sheet except the rectangle box so
that it will show the position of the rectangle box.

But what I need is when I move the rectangle by using mouse up I want
cell(a1) and cell(b1) show the position of rectangle automatically.

Some one give me the solution pls.
Thanks for your help.

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
EXCEL allow 2 options on status bar e.g. show "Count" + "Sum" LEJM Excel Discussion (Misc queries) 2 November 15th 07 07:49 PM
how to show the rectangle box position kim New Users to Excel 0 June 30th 07 02:56 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
if "a" selected from dropdown menu then show "K" in other cell LEGALMATTERS Excel Worksheet Functions 1 April 13th 06 06:05 PM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM


All times are GMT +1. The time now is 03:22 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"