pile-it Mark
Board Regular
- Joined
- Jan 10, 2006
- Messages
- 125
i have a workbook that i track flights and maintenance for an aircraft. every year i decide to make changes and have to try and remember how i got to this place. the harder things i do manually till i figure out how to make a VBA work to save me the hassle. this is my issue today.
there are currently 145 tabs in this workbook. a previous one that i would like to use this on has 550. i usually make major changes at 250 tabs and start a new book
total hours total Landings
=SUM(E10:E5338) =SUM(F10:F5338)
for each tab in the workbook retrieve the following cells. Add lines as required. correct sums to seek all cells used. tabs are added for each trip. 80 - 200 a year.
Date trip number tab name Hours Landings
=E12 =R$5 =S12 =T12
=E13 =R$5 =S13 =T13
=E14 =R$5 =S14 =T14
=E15 =R$5 =S15 =T15
=E16 =R$5 =S16 =T16
=E17 =R$5 =S17 =T17
=E18 =R$5 =S18 =T18
=E19 =R$5 =S19 =T19
trying to remember HTML maker now.
i have no idea how to pull the tab name. i have a VBA to rename the tab to a cell value, but have naver been able to make it work.
the micro i would like to add this to, unless it can be done with formulas:
there are currently 145 tabs in this workbook. a previous one that i would like to use this on has 550. i usually make major changes at 250 tabs and start a new book
total hours total Landings
=SUM(E10:E5338) =SUM(F10:F5338)
for each tab in the workbook retrieve the following cells. Add lines as required. correct sums to seek all cells used. tabs are added for each trip. 80 - 200 a year.
Date trip number tab name Hours Landings
=E12 =R$5 =S12 =T12
=E13 =R$5 =S13 =T13
=E14 =R$5 =S14 =T14
=E15 =R$5 =S15 =T15
=E16 =R$5 =S16 =T16
=E17 =R$5 =S17 =T17
=E18 =R$5 =S18 =T18
=E19 =R$5 =S19 =T19
trying to remember HTML maker now.
Excel 2010 | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
4 | total hours | total Landings | |||||
5 | |||||||
6 | =SUM(E10:E5338) | =SUM(F10:F5338) | |||||
7 | for each tab in the workbook retrieve the following cells. Add lines as required. correct sums to seek all cells used. tabs are added for each trip. 80 - 200 a year. | ||||||
8 | |||||||
9 | Date | trip number | tab name | Hours | Landings | ||
10 | =E12 | =R$5 | =S12 | =T12 | |||
11 | =E13 | =R$5 | =S13 | =T13 | |||
12 | =E14 | =R$5 | =S14 | =T14 | |||
13 | =E15 | =R$5 | =S15 | =T15 | |||
14 | =E16 | =R$5 | =S16 | =T16 | |||
15 | =E17 | =R$5 | =S17 | =T17 | |||
16 | =E18 | =R$5 | =S18 | =T18 | |||
17 | =E19 | =R$5 | =S19 | =T19 | |||
18 | |||||||
19 | |||||||
20 | |||||||
time |
i have no idea how to pull the tab name. i have a VBA to rename the tab to a cell value, but have naver been able to make it work.
the micro i would like to add this to, unless it can be done with formulas:
Code:
Sub CreateSheetCopy()
'
' CreateSheetCopy Macro
'
'
Sheets("Master 407").Select
Sheets("Master 407").Copy Before:=Sheets(5)
' Sub Copy1stRow()
Application.Run "'flightlog 2017 r17.xlsm'!Copy1stRow"
Application.Run "'flightlog 2017 r17.xlsm'!CopyformatChange"
End Sub