MortenA
Petroleum
- Aug 20, 2001
- 2,996
Hav you ever wanted to copy a formula from one cell to another without changing the referenced cells?
Heres a small pices of code that can do that:
Dim myvalue As String
Sub move_formula1()
myvalue = ActiveCell.Formula
End Sub
Sub move_formula2()
ActiveCell.Value = myvalue
End Sub
Link to two subs to keys on the keyboard (eg: q and w) and you will have this little function at your fingertips!
-Be aware crtl+q/w might be linked to functions that you frequently (i dont).
Best Regards
Morten
Heres a small pices of code that can do that:
Dim myvalue As String
Sub move_formula1()
myvalue = ActiveCell.Formula
End Sub
Sub move_formula2()
ActiveCell.Value = myvalue
End Sub
Link to two subs to keys on the keyboard (eg: q and w) and you will have this little function at your fingertips!
-Be aware crtl+q/w might be linked to functions that you frequently (i dont).
Best Regards
Morten