shemayisroel
Well-known Member
- Joined
- Sep 11, 2008
- Messages
- 1,867
Hi,
Looking to enhance and tidy up the below code to use in a command button, I used the macro recorder to almost do what I need it to do.
What I'm trying to do in words is
- Copy the values in Range G19:V19
- Paste those values in Sheet "CommentsLog" starting from B2 but I need the code to find the next blank row to keep on pasting new values as required
- Once updated bring up a message box to advise user that the values have been updated and then clear the values in range G19:V19
Looking to enhance and tidy up the below code to use in a command button, I used the macro recorder to almost do what I need it to do.
What I'm trying to do in words is
- Copy the values in Range G19:V19
- Paste those values in Sheet "CommentsLog" starting from B2 but I need the code to find the next blank row to keep on pasting new values as required
- Once updated bring up a message box to advise user that the values have been updated and then clear the values in range G19:V19
Code:
Range("G19:V19").Select
Selection.Copy
Sheets("CommentsLog").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Plan vs Actual").Select
Range("E19:F19").Select