ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How to set a value in a cell whose address is held in another cell (https://www.excelbanter.com/new-users-excel/445706-how-set-value-cell-whose-address-held-another-cell.html)

Ellis Morgan

How to set a value in a cell whose address is held in another cell
 
Say I have A1=4 and A2="D3", can I write a macro to set D3=4, using the
information in A1:A2?
--
Ellis Morgan

Jim Cone[_2_]

How to set a value in a cell whose address is held in another cell
 
Sub MakeItReal()
Dim strText As String
strText = Range("A2").Text
Range(strText).Value = Range("A1").Value
End Sub
--
Jim Cone
Portland, Oregon USA .
http://www.mediafire.com/PrimitiveSoftware .
(Data Options add-in: row stuff/date picker/random stuff)



"Ellis Morgan"
wrote in message
...
Say I have A1=4 and A2="D3", can I write a macro to set D3=4, using the information in A1:A2?
--
Ellis Morgan




Ellis Morgan

How to set a value in a cell whose address is held in another cell
 
In article , Jim Cone
writes
Sub MakeItReal()
Dim strText As String
strText = Range("A2").Text
Range(strText).Value = Range("A1").Value
End Sub


Thanks Jim, just what I needed.
--
Ellis Morgan


All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com