Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

3 views
Skip to first unread message

Ellis Morgan

unread,
Apr 6, 2012, 2:22:06 PM4/6/12
to
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

unread,
Apr 6, 2012, 2:43:23 PM4/6/12
to
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" <el...@nospam.demon.co.uk>
wrote in message
news:HYPSVWGO...@mrtlfrm.demon.co.uk...

Ellis Morgan

unread,
Apr 6, 2012, 8:45:10 PM4/6/12
to
In article <jlndga$cr4$1...@speranza.aioe.org>, Jim Cone
<james....@comcast.netXxx> 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
0 new messages