Worksheet 1 is called "Instructions:
Worksheet 2 is called "Copy the TXT File Data Here"
The data is formatted as a Table and the table is named "tbl_OpenItems"
The data and table are located on worksheet 2
Within the table "tbl_OpenItems"...
Row 1 is the header row
Row 2-n has data
There are 15 columns (so A-O)
There are no formulas to preserve
When a new users comes into the file, I want them to be able to hit a button that will allow them to clear the old contents which will then allow them to copy in their new data (which will always have a different # of rows)
When the button is hit, I want all data in the table, but NOT the headers to be cleared.
I "think" but I could be wrong, that I need to preserve Row 2 (all blank) so that the User copying in their new data has Cell A2 as their starting point to hit CTRL-V to paste in their data.
The button will be located on Tab 1 called "Instructions" (I may put another version of this button on the worksheet with the table as well, but I'll cross that road later if I do)
The table (tbl_OpenItems) is located on Tab 2 called "Copy the TXT File Data Here"
My apologies as I'm still learning VBA, Macros, etc so I will need precise instructions on how to write this, how and where to save it (i.e. I don't understand when to use or not use Modules), etc. Every detail will be important so I can follow exactly how to implement this. If the code has a Macro name (not sure I'm saying that correctly, but hopefully you know what I mean), then I know how to Assign a button to the Macro so the user can simply click the button to execute the VBA code.
Additional nice to haves (these would be really nice):
- When the button is clicked, a warning should say "Are you sure you want to clear the OpenItems table?" Yes No
- Clicking No pops a new message saying "The operation was cancelled as you requested. Click OK to close and continue where you left off." OK
- Clicking Yes would clear the table and a pop-up message would occur saying "You have cleared the table. Click OK to close this window". OK
- User should be taken to Tab 1 ("Instructions", cell A119) after clicking OK to either the No or Yes pop-up message.
Bookmarks