Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I have a variable (hgTime) with a time value of 7:15 PM.
I have column of time values (column F) for which I want to insert a blank cell at the point in the column that time (hgTime) would fit in between. So if this is my data ...
The value would be placed between rows 32 and 33.
Would anyone be able to help find an efficient VBA solution to accomplish this. I was working with a series of loops, but that felt very awkward and I wasn't getting great results.
I have column of time values (column F) for which I want to insert a blank cell at the point in the column that time (hgTime) would fit in between. So if this is my data ...
task allocation.xlsm | |||
---|---|---|---|
F | |||
13 | 4:30P | ||
14 | 8:30A | ||
15 | 8:30A | ||
16 | 9:00A | ||
17 | 9:00A | ||
18 | 9:00A | ||
19 | 1:00P | ||
20 | 1:00P | ||
21 | 4:30P | ||
22 | 5:00P | ||
23 | 5:00P | ||
24 | 5:00P | ||
25 | 6:00P | ||
26 | 6:00P | ||
27 | 6:00P | ||
28 | 6:30P | ||
29 | 7:00P | ||
30 | 7:00P | ||
31 | 7:00P | ||
32 | 7:00P | ||
33 | 9:00P | ||
Master |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
F13:F25 | List | =nr_dsr2 |
The value would be placed between rows 32 and 33.
Would anyone be able to help find an efficient VBA solution to accomplish this. I was working with a series of loops, but that felt very awkward and I wasn't getting great results.