Saving input into 2nd worksheet while keeping the 1st empty
Closed
BritanyWorkwood
Posts
1
Registration date
Sunday 23 July 2017
Status
Member
Last seen
23 July 2017
-
23 Jul 2017 à 19:20
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 25 Jul 2017 à 11:52
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 25 Jul 2017 à 11:52
Related:
- Saving input into 2nd worksheet while keeping the 1st empty
- Input mapper - Download - Gaming tools
- Input phone password ✓ - Phones, PDA & GPS Forum
- Input phone lock code - Phones, PDA & GPS Forum
- 1st mass mailer - Download - Email
- Lg tv rename hdmi input ✓ - Smart TV Forum
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
25 Jul 2017 à 11:52
25 Jul 2017 à 11:52
Hi Britany,
Important note:The code below both deletes data and saves your workbook. So make sure you test this with a copy of your workbook !!!
Here is the code:
Since you gave me a spoiler, let me provide some extra info on using codes:
How to implement and run a code:
- From Excel hit Alt + F11 to open the “Microsoft Visual Basic” window.
- Go to the top menu in the newly opened window > Insert > Module.
- Paste the code in the big white field.
- You can now close this window.
- Back at Excel, hit Alt + F8 to display the available macro’s.
- Double-click the macro you wish to run.
NOTE: macro’s cannot be reversed using the blue arrows. Always make sure you save your file (or create a back up to be entirely sure) before running a code, so you can re-open your file if something unforeseen happens or you want to go back to the situation before the code was run.
Best regards,
Trowa
Monday, Tuesday and Thursday are usually the days I'll respond. Bear this in mind when awaiting a reply.
Important note:The code below both deletes data and saves your workbook. So make sure you test this with a copy of your workbook !!!
Here is the code:
Sub RunMe()
Sheets("Checklist").Cells.Copy
Sheets.Add after:=Sheets(Sheets.Count)
ActiveSheet.Name = "Checklist " & Date
Range("A1").PasteSpecial
Sheets("Checklist").Select
Range("B2:B" & Range("B1").End(xlDown).Row).ClearContents
ActiveWorkbook.Save
End Sub
Since you gave me a spoiler, let me provide some extra info on using codes:
How to implement and run a code:
- From Excel hit Alt + F11 to open the “Microsoft Visual Basic” window.
- Go to the top menu in the newly opened window > Insert > Module.
- Paste the code in the big white field.
- You can now close this window.
- Back at Excel, hit Alt + F8 to display the available macro’s.
- Double-click the macro you wish to run.
NOTE: macro’s cannot be reversed using the blue arrows. Always make sure you save your file (or create a back up to be entirely sure) before running a code, so you can re-open your file if something unforeseen happens or you want to go back to the situation before the code was run.
Best regards,
Trowa
Monday, Tuesday and Thursday are usually the days I'll respond. Bear this in mind when awaiting a reply.