Hi!
I'm new and my first post.
I need to copy a named range based on the name of the range in a cell then paste value/format to another named range that is named in another cell value.
the cell for the range name aug_cy is t14 and the value for the range test_py is u14
Hope that makes sense?
Many thanks
I'm new and my first post.
I need to copy a named range based on the name of the range in a cell then paste value/format to another named range that is named in another cell value.
Code:
Application.Goto Reference:="aug_cy"
Application.CutCopyMode = False
Selection.Copy
Application.Goto Reference:="test_py"
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
the cell for the range name aug_cy is t14 and the value for the range test_py is u14
Hope that makes sense?
Many thanks
Last edited by a moderator: