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

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?
 
E

Ellis Morgan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top