IIII
New Member
- Joined
- Jan 26, 2021
- Messages
- 18
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
Hi All,
I have this worksheet (see below) that has multiple formatted tables. Users are able to add or remove table rows as needed.
What I'm wishing for it to do via VBA is the following:
If additional clarity is needed, please let me know. Thanks for any help or guidance in advance. Cheers!
I have this worksheet (see below) that has multiple formatted tables. Users are able to add or remove table rows as needed.
What I'm wishing for it to do via VBA is the following:
- Remove any empty rows from any of the tables
- Print the whole thing from A2 down to F...the row just after the last table row -- which in the example below is F50). Columns A & F are empty - both are used to create a blank border for print to pdf.
If additional clarity is needed, please let me know. Thanks for any help or guidance in advance. Cheers!
Example of Shathousery.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
2 | ||||||||
3 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |||||||
4 | Total Cost for Thing: | $ - | ||||||
5 | ||||||||
6 | Thing | Dates | Details | Cost | ||||
7 | Car (Staff) | Fri, 21 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
8 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
9 | Car (Staff) | Mon, 24 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |||||
10 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
11 | Fuel | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 400.00 | |||||
12 | Sub-total cost for Transport | $ 400.00 | ||||||
13 | ||||||||
14 | Thing | Dates | Details | Cost | ||||
15 | Hotel | Fri, 21 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
16 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
17 | Hotel | Mon, 24 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
18 | $ - | |||||||
19 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 824.00 | ||||||
20 | Sub-total cost for Accomodation | $ 824.00 | ||||||
21 | ||||||||
22 | Thing | Dates | Details | Cost | ||||
23 | Lesson | Fri, 21 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
24 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
25 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 172.00 | ||||||
26 | Tour | Sat, 22 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |||||
27 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
28 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 480.00 | ||||||
29 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||||
30 | Ride | Sun, 23 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
31 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 350.00 | ||||||
32 | Sub-total cost for Activities | $ 1,002.00 | ||||||
33 | ||||||||
34 | Thing | Dates | Details | Cost | ||||
35 | Day 1 | Fri, 21 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 100.00 | ||||
36 | Day 2 | Sat, 22 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 100.00 | ||||
37 | Day 3 | Sun, 23 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 100.00 | ||||
38 | Day 4 | Mon, 24 Apr 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 60.00 | ||||
39 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ 50.00 | ||||||
40 | ||||||||
41 | ||||||||
42 | ||||||||
43 | ||||||||
44 | ||||||||
45 | ||||||||
46 | Sub-total cost for Meals | $ 410.00 | ||||||
47 | ||||||||
48 | Thing | Dates | Details | Cost | ||||
49 | Staff Name | TBA | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | $ - | ||||
50 | ||||||||
Plan |