Hi all,
I need some help with VBA code that finds the date and then copies the data from row 6 underneath it (the orange cells). The number of rows underneath 6 will be variable but these cells will always contain a forumla or hard code figure, there will always be a break line at the bottom of the data, I was going to use the following code, I just can't figure out how to get it to look at the date at the top and then start from the 6th row down.
The date it needs to find will come from a sheet called P&L and will always be in cell G5 in that sheet.
Range("H6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
I need some help with VBA code that finds the date and then copies the data from row 6 underneath it (the orange cells). The number of rows underneath 6 will be variable but these cells will always contain a forumla or hard code figure, there will always be a break line at the bottom of the data, I was going to use the following code, I just can't figure out how to get it to look at the date at the top and then start from the 6th row down.
The date it needs to find will come from a sheet called P&L and will always be in cell G5 in that sheet.
Range("H6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
FY21 Template.xlsm | ||||
---|---|---|---|---|
H | I | |||
1 | ||||
2 | ||||
3 | ||||
4 | Oct-21 | Nov-21 | ||
5 | Forecast | Forecast | ||
6 | £95,000 | £0 | ||
7 | £0 | £0 | ||
8 | £0 | £0 | ||
9 | £0 | £0 | ||
10 | £0 | £0 | ||
11 | £0 | £0 | ||
12 | £0 | £0 | ||
13 | £0 | £0 | ||
14 | £0 | £0 | ||
15 | £0 | £0 | ||
16 | £0 | £0 | ||
17 | £0 | £0 | ||
18 | £0 | £0 | ||
19 | £0 | £0 | ||
20 | £0 | £0 | ||
21 | £0 | £0 | ||
22 | £0 | £0 | ||
23 | £0 | £0 | ||
24 | £0 | £0 | ||
25 | £0 | £0 | ||
26 | £0 | £0 | ||
27 | £0 | £0 | ||
28 | £0 | £0 | ||
29 | £0 | £0 | ||
30 | £0 | £0 | ||
31 | £0 | £0 | ||
32 | £0 | £0 | ||
33 | £0 | £0 | ||
34 | £0 | £0 | ||
35 | £0 | £0 | ||
36 | £0 | £0 | ||
37 | £0 | £0 | ||
38 | £0 | £0 | ||
39 | £0 | £0 | ||
40 | £0 | £0 | ||
41 | £0 | £0 | ||
42 | £0 | £0 | ||
43 | £0 | £0 | ||
44 | £0 | £0 | ||
45 | £0 | £0 | ||
46 | £0 | £0 | ||
47 | £0 | £0 | ||
48 | ||||
Forecast |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I4 | I4 | =EOMONTH(H4,0)+1 |
I6,H7:I47 | I6 | =Budget!H6 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
H36:H46 | Expression | =IF(H$5="ACTUAL",TRUE,) | text | NO |
H6:H35,H47 | Expression | =IF(H$5="ACTUAL",TRUE,) | text | NO |
G36:G46,I36:S46 | Expression | =IF(G$5="ACTUAL",TRUE,) | text | NO |
G47,G6:G35,I6:S35,I47:S47 | Expression | =IF(G$5="ACTUAL",TRUE,) | text | NO |