Hi All
I need a VBA to copy cell referenced in cell B1 to cell referenced in cell B2 as per workbook attached.
Thank you.
Joseph
Hi All
I need a VBA to copy cell referenced in cell B1 to cell referenced in cell B2 as per workbook attached.
Thank you.
Joseph
Potentially would not need copy, the below would be faster if using a lot:
Or are you after taking the range references from the worksheet?Range("F3").Value = Range("E1").Value
If things don't change they stay the same
Thank you CheeseSandwich! Sorry, I forgot to mention.. cells referenced in cells B1 and B2 are subject to change.
lol was that a trick, you highlighted J3 but I3 was the destination cell
try:
Sub CopyCell() Dim fRng As Range, tRng As Range Set fRng = Range(Range("B1").Value) Set tRng = Range(Range("B2").Value) tRng = fRng End Sub
Thanks CheeseSandwich! Works like a charm! And, I have managed to shorten it to:
Here's a Rep for you!Range(Range("B2").Value) = Range(Range("B1").Value)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks