Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

show the x and y of a cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wu - 17 May 2008 17:00 GMT
I have written a macro that the cursor will stop at uncertain cell everytime
finally.

when the cursor stop, I would like to show the x and y of the cell at
range("A1")

For example, after running the marco, the cursor stop at range("C3")

I want that in range("A1") will show -------->        3,3
if cursor stops at range("B2"), the range("A1") will show --------->  2,2
Dave Peterson - 17 May 2008 17:06 GMT
Is that row,column?

If yes, you could use:

dim myCell as range
...
with activesheet
  set mycell = .cells(33, 11)  'however your macro stops????
  with .range("a1")
     .numberformat = "@" 'text
     .value = mycell.row & "," & mycell.column
  end with
end with

> I have written a macro that the cursor will stop at uncertain cell everytime
> finally.
[quoted text clipped - 6 lines]
> I want that in range("A1") will show -------->        3,3
> if cursor stops at range("B2"), the range("A1") will show --------->  2,2

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.