Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Populating one cell with the physcial location of a different cell

Hi - I'm trying to write code which will essentially populate one cell with
the physcial location (ie - 'A10') of another cell. A simple example is:

I want to create a variable so that I can set the variable to capture the
physical location of cell A10 and then populate cell C17 with 'A10'
(literally so that the text within cell C17 says 'A10').

Any help on how to do this is much appreciated!!

Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Populating one cell with the physcial location of a different cell

On Wed, 18 May 2005 02:19:03 -0700, "Linking to specific cells in
pivot table"
crosoft.com wrote:

Hi - I'm trying to write code which will essentially populate one cell with
the physcial location (ie - 'A10') of another cell. A simple example is:

I want to create a variable so that I can set the variable to capture the
physical location of cell A10 and then populate cell C17 with 'A10'
(literally so that the text within cell C17 says 'A10').

Any help on how to do this is much appreciated!!

Rob

Try this

Sub PlaceAddress()

ToPlace = ActiveCell.Address
Cells(1, 5).Value = ToPlace

End Sub


Claus Henriksen
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Populating one cell with the physcial location of a different cell



"Claus Henriksen" wrote in message
...
On Wed, 18 May 2005 02:19:03 -0700, "Linking to specific cells in
pivot table"
crosoft.com wrote:

Sub PlaceAddress()

ToPlace = ActiveCell.Address
Cells(1, 5).Value = ToPlace


If you want it in the form C17, not $C$17, use

Activecell.Address(False,False)


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
populating new cell with first populated cell to the left Meanie Excel Worksheet Functions 0 June 20th 08 07:14 PM
auto populating a cell based on another cell for an invoice Chrisinct Excel Discussion (Misc queries) 3 November 8th 07 06:08 PM
Populating Last Saved Date in Cell AND also update that same cell in Header o0o_Bigs_o0o Excel Discussion (Misc queries) 2 July 4th 06 12:56 PM
automatic offset cell location when there is a value in a selected cell. kuansheng Excel Worksheet Functions 0 February 23rd 06 01:40 AM
Populating a cell when certain cell is clicked Anthony Slater Excel Discussion (Misc queries) 3 April 14th 05 01:55 PM


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