How to set a value in a cell whose address is held in another cell

  • Thread starter Thread starter Ellis Morgan
  • Start date Start date
E

Ellis Morgan

Say I have A1=4 and A2="D3", can I write a macro to set D3=4, using the
information in A1:A2?
 
Jim Cone said:
Sub MakeItReal()
Dim strText As String
strText = Range("A2").Text
Range(strText).Value = Range("A1").Value
End Sub

Thanks Jim, just what I needed.
 
Back
Top