Computing.Net > Forums > Office Software > MS Excel Current Cell Reference

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MS Excel Current Cell Reference

Reply to Message Icon

Name: worpx
Date: June 2, 2006 at 06:04:57 Pacific
OS: WinXP
CPU/Ram: Athlon 64/1GB
Product: Custom
Comment:

Hello,

I am trying to reference the current cell that I'm on (for a macro). I need to have it display the current cell such as in D8; I currently have it set to =D8. I want to have some way to make it for all cells that I'm going to copy over -- something like =ActiveCell.Worksheet so it will display the current cell and reference itself.
Any ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: CyberSlug
Date: June 2, 2006 at 09:52:59 Pacific
Reply:

Have you looked at the functions CELL, ROW, COLUMN, and OFFSET?

=CELL("address")


0

Response Number 2
Name: rhawk7938
Date: June 2, 2006 at 10:45:32 Pacific
Reply:

Code for worksheet:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("D8") = ActiveCell.Value
End Sub



0

Response Number 3
Name: A Certain TH
Date: June 8, 2006 at 04:57:45 Pacific
Reply:

the VBA version of CyberSlugs response is

Activecell.Address


Tom


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: MS Excel Current Cell Reference

Excel Dynamic Cell Reference www.computing.net/answers/office/excel-dynamic-cell-reference/8797.html

Excel 2003 - Highlight current cell www.computing.net/answers/office/excel-2003-highlight-current-cell/3788.html

MS Excel - Change text with IF www.computing.net/answers/office/ms-excel-change-text-with-if-/5644.html