I have 8 tabs in file 1. I have a code which opens another file, file2. I need a vba that searches the value in cell A1 of each tab in file 1 from file2 column A:A. This file2 has only one tab.
If the values are found, I need the vba to copy the data for each value
For e.x. If the value in cell A1 in tab1 is 100, the vba will search that value from column A:A in file2. If it finds, the vba wil copy the rows specific to 100. You can identify the data specific to 100 if another value that is not 100 starts.
Thanks
If the values are found, I need the vba to copy the data for each value
For e.x. If the value in cell A1 in tab1 is 100, the vba will search that value from column A:A in file2. If it finds, the vba wil copy the rows specific to 100. You can identify the data specific to 100 if another value that is not 100 starts.
Excel Workbook | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
8 | 0100 | * | * | * | ||
9 | Object Category | GAAP Category Title | Comptroller Source Group | Comptroller Source Group Title | ||
10 | 01 | PERSONNEL SERVICES | 0011 | REGULAR PAY - CONT FULL TIME | ||
11 | 0012 | REGULAR PAY - OTHER | ||||
12 | 0013 | ADDITIONAL GROSS PAY | ||||
13 | 0014 | FRINGE BENEFITS - CURR PERSONNEL | ||||
14 | 0015 | OVERTIME PAY | ||||
15 | 0099 | UNKNOWN PAYROLL POSTINGS | ||||
16 | PERSONNEL SERVICES | |||||
17 | 02 | NON-PERSONNEL SERVICES | 0020 | SUPPLIES AND MATERIALS | ||
18 | 0030 | ENERGY, COMM. AND BLDG RENTALS | ||||
19 | 0031 | TELEPHONE, TELEGRAPH, TELEGRAM, ETC | ||||
20 | 0032 | RENTALS - LAND AND STRUCTURES | ||||
21 | 0033 | JANITORIAL SERVICES | ||||
22 | 0034 | SECURITY SERVICES | ||||
23 | 0035 | OCCUPANCY FIXED COSTS | ||||
24 | 0040 | OTHER SERVICES AND CHARGES | ||||
25 | 0041 | CONTRACTUAL SERVICES - OTHER | ||||
26 | 0070 | EQUIPMENT & EQUIPMENT RENTAL | ||||
27 | NON-PERSONNEL SERVICES | |||||
28 | 0100 | |||||
29 | 1359 | * | * | * | ||
30 | Object Category | GAAP Category Title | Comptroller Source Group | Comptroller Source Group Title | ||
31 | 01 | PERSONNEL SERVICES | 0011 | REGULAR PAY - CONT FULL TIME | ||
32 | 0012 | REGULAR PAY - OTHER | ||||
33 | 0013 | ADDITIONAL GROSS PAY | ||||
34 | 0014 | FRINGE BENEFITS - CURR PERSONNEL | ||||
35 | 0015 | OVERTIME PAY | ||||
36 | 0099 | UNKNOWN PAYROLL POSTINGS | ||||
37 | PERSONNEL SERVICES | |||||
38 | 02 | NON-PERSONNEL SERVICES | 0020 | SUPPLIES AND MATERIALS | ||
39 | 0031 | TELEPHONE, TELEGRAPH, TELEGRAM, ETC | ||||
40 | 0032 | RENTALS - LAND AND STRUCTURES | ||||
41 | 0035 | OCCUPANCY FIXED COSTS | ||||
42 | 0040 | OTHER SERVICES AND CHARGES | ||||
43 | 0041 | CONTRACTUAL SERVICES - OTHER | ||||
44 | 0070 | EQUIPMENT & EQUIPMENT RENTAL | ||||
45 | NON-PERSONNEL SERVICES | |||||
46 | 1359 | |||||
47 | 1365 | * | * | * | ||
48 | Object Category | GAAP Category Title | Comptroller Source Group | Comptroller Source Group Title | ||
49 | 01 | PERSONNEL SERVICES | 0011 | REGULAR PAY - CONT FULL TIME | ||
50 | 0012 | REGULAR PAY - OTHER | ||||
51 | 0013 | ADDITIONAL GROSS PAY | ||||
52 | 0014 | FRINGE BENEFITS - CURR PERSONNEL | ||||
53 | 0015 | OVERTIME PAY | ||||
54 | 0099 | UNKNOWN PAYROLL POSTINGS | ||||
55 | PERSONNEL SERVICES | |||||
56 | 02 | NON-PERSONNEL SERVICES | 0020 | SUPPLIES AND MATERIALS | ||
57 | 0030 | ENERGY, COMM. AND BLDG RENTALS | ||||
58 | 0031 | TELEPHONE, TELEGRAPH, TELEGRAM, ETC | ||||
59 | 0033 | JANITORIAL SERVICES | ||||
60 | 0034 | SECURITY SERVICES | ||||
61 | 0040 | OTHER SERVICES AND CHARGES | ||||
62 | 0041 | CONTRACTUAL SERVICES - OTHER | ||||
63 | 0070 | EQUIPMENT & EQUIPMENT RENTAL | ||||
64 | NON-PERSONNEL SERVICES | |||||
65 | 1365 | |||||
Page1_1 |
Thanks