Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default show x and y of the cell

I have written a macro that the cursor will stop at uncertain cell everytime
finally.

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

e.g the cursor stops at C3, then range("A1") shows ---- 3,3

or, the cursor stops at B2, then range("A1") shows ---- 2,2

How to write in macro for this effect?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default show x and y of the cell

Check your earlier post.

Wu wrote:

I have written a macro that the cursor will stop at uncertain cell everytime
finally.

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

e.g the cursor stops at C3, then range("A1") shows ---- 3,3

or, the cursor stops at B2, then range("A1") shows ---- 2,2

How to write in macro for this effect?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default show x and y of the cell

However you are running your macro, i think if you just add at the end
of it:

Range("A1").Value = ActiveCell.Address(false,false)

...the (false,false) is for Row absoulte, so you'll have to set it as
either true or false, depending on if you want to show the dollar
signs in cell A1 or not. I think false false will display $B$2 for
example. true true is B2. but you'll have to check.

hope this helps
dk


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
How do i assign cell A1 to show the current cursor cell in Excel? OB Excel Discussion (Misc queries) 2 October 11th 06 04:02 PM
format cell to show leading zeros and make cell a three digit fiel Kristin Excel Worksheet Functions 2 July 28th 06 09:42 PM
In adjacent cell, show last date modified of target cell. manxman Excel Discussion (Misc queries) 0 March 17th 06 10:47 PM
Formatting to show/not show "DUE" and "RECEIVED" in cell kevhatch New Users to Excel 5 October 9th 05 09:10 PM
enter a time into a cell, have the cell show two times the entry johnp Excel Worksheet Functions 3 May 2nd 05 12:08 AM


All times are GMT +1. The time now is 05:29 PM.

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"