#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Addressing in VBA

OS: MS XP
Excel 2003

I must use relative addressing and need to copy a formula from cell AA4 to
the relative address Im currently at. When I leave the relative address to
copy the formula from cell AA4 I dont know how to get back to where I need
to paste it. In other words I dont completely understand addressing in VBA.
How can I read the address of the cell Im leaving and write the formula
back to that address?

Thanks in advanced.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Addressing in VBA

Hi Richard

Try
ActiveCell.Value= cells(4,27).value

--

Regards
Roger Govier

"Richard" wrote in message
...
OS: MS XP
Excel 2003

I must use relative addressing and need to copy a formula from cell AA4 to
the relative address Im currently at. When I leave the relative address
to
copy the formula from cell AA4 I dont know how to get back to where I
need
to paste it. In other words I dont completely understand addressing in
VBA.
How can I read the address of the cell Im leaving and write the formula
back to that address?

Thanks in advanced.

--
Richard


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
Cell addressing Mike Excel Worksheet Functions 0 November 30th 06 02:51 PM
Cell addressing John Excel Worksheet Functions 0 November 30th 06 12:40 PM
Cell addressing Mike Excel Worksheet Functions 0 November 30th 06 09:02 AM
Relative addressing DOGMA-DOT Excel Worksheet Functions 1 July 13th 06 10:45 AM
two D addressing? lookup? Thrava Excel Discussion (Misc queries) 5 December 3rd 04 08:19 AM


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