i have a a macro button that runs
ActiveCell.FormulaR1C1 = "=(RANDBETWEEN(1000,9999))"
what i would like it to do is copy the cell to the next column before the rand runs. all the cells are in column D
and need to copy to E, same row.
the macro record shows this
Range("D6").Select
Selection.Copy
Range("E6").Select
ActiveSheet.Paste
End Sub
Sub Macrotest4()
'
' Macrotest4 Macro
'
'
Selection.Copy
Range("E3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
i can't figure out how to make the range move with the active cell.
Thank you
ActiveCell.FormulaR1C1 = "=(RANDBETWEEN(1000,9999))"
what i would like it to do is copy the cell to the next column before the rand runs. all the cells are in column D
and need to copy to E, same row.
the macro record shows this
Range("D6").Select
Selection.Copy
Range("E6").Select
ActiveSheet.Paste
End Sub
Sub Macrotest4()
'
' Macrotest4 Macro
'
'
Selection.Copy
Range("E3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
i can't figure out how to make the range move with the active cell.
Thank you