Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50057

address function into macro

$
0
0
Hi,

How can I add Address function into macro.
here is a simple macro. How can I replace cell value "G26" for this function "=Address(G17, H17)" so this function will find correct cell value.?

Sub Macro1()

'
Range("D26").Select
Selection.Copy
Range("G26").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Best regards T

Viewing all articles
Browse latest Browse all 50057

Trending Articles