Here's a slightly less conventional way to approach this, but you could use the Paste Special... > Multiply
feature. E.g., for this example, I placed a 2
in cell A17
, and applied the multiplier to my A1:F15
range. Here's what that looks like programmatically:
Sub MultiplyAll()
Range("A17").Select 'select the multiplier from cell A17
Application.CutCopyMode = False
Selection.Copy 'capture the multiplier "2" onto the clipboard
Range("A1:F15").Select 'select the range that will be multiplied
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply, _
SkipBlanks:=False, Transpose:=False
End Sub
This might not be a great approach for your use case, but consider that you might not even need a macro if you just need to paste your multiplier onto a range manually.