drmichaelw
IS-IT--Management
I am copying a column of values and formulas. I want to write a macro that pastes formulas only.
The challenge I am having is that I need to run this macro on different cells each time I run the macro. How can I code the macro to work on only the cells I select.
This is the code I have so far. The problem as you can see
is that the macro will only work in cell F20. I need to be able to choose the cells that the macro will run on.
Thanks for your response
Sub Paste_Formula()
'
'
'
Range("F20"
.Select
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
The challenge I am having is that I need to run this macro on different cells each time I run the macro. How can I code the macro to work on only the cells I select.
This is the code I have so far. The problem as you can see
is that the macro will only work in cell F20. I need to be able to choose the cells that the macro will run on.
Thanks for your response
Sub Paste_Formula()
'
'
'
Range("F20"
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub