JoshLyman
New Member
- Joined
- Jan 11, 2023
- Messages
- 35
- Office Version
- 365
- 2010
- Platform
- Windows
I have the below table on a sheet called 3 - OTJ LOG which has a Total row at the bottom, and will always be filled (I just don't want to have to add many many unnecessary rows, without knowing how many).
Is there a way (using VBA) for me to have an a button which the user clicks and it adds a new row into this table before the Total row?
DRAFT - OTJ Log - v0.1.xlsm | ||||
---|---|---|---|---|
B | C | |||
9 | Date | OTJ hrs | ||
10 | 25/08/2023 | 3 | ||
11 | 26/08/2023 | 5 | ||
12 | 27/08/2023 | 6 | ||
13 | 28/08/2023 | 6 | ||
14 | 29/08/2023 | 3 | ||
15 | 30/08/2023 | 5 | ||
16 | 31/08/2023 | 7 | ||
17 | 01/09/2023 | 3 | ||
18 | Total | 38 | ||
3 - OTJ LOG |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C18 | C18 | =SUBTOTAL(109,[OTJ hrs]) |
Is there a way (using VBA) for me to have an a button which the user clicks and it adds a new row into this table before the Total row?