CordingBags
New Member
- Joined
- Mar 7, 2022
- Messages
- 43
- Office Version
- 2016
- Platform
- Windows
I obtained the following macro using "macro recorder", however I need to replace the fixed locations with user input, as indicated.
Sub Macro1()
Rows("20:20").Select - (replace with user input 1)
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("26:26").Select - (replace with user input 2)
Selection.Cut
Rows("20:20").Select - (replace with user input 1)
ActiveSheet.Paste
Rows("26:26").Select - (replace with user input 2)
Selection.Delete Shift:=xlUp
Range("F11").Select
End Sub
Any help appreciated
Thanks
Paul
Sub Macro1()
Rows("20:20").Select - (replace with user input 1)
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("26:26").Select - (replace with user input 2)
Selection.Cut
Rows("20:20").Select - (replace with user input 1)
ActiveSheet.Paste
Rows("26:26").Select - (replace with user input 2)
Selection.Delete Shift:=xlUp
Range("F11").Select
End Sub
Any help appreciated
Thanks
Paul