Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please help me, i did the long way already, i used IF condition to
identify the sheet name and loop to look up the value from another sheet, someone told me that i can do a loop to get all the info i needed from those sheets and the loop will stop until all the sheets have been loop already. Please.... Heres my scenario. I have two workbooks; In Workbook A, the business areas is the sheet name, inside every sheet is our cost data, cost center code is our reference and we get the value from the tenth column. This a report submitted to me. In Workbook B, my report, I need to do a summary of all business areas (sheet name in Workbook A), one business area = one column and Cost center code as my reference column also. Her's my code in Workbook A- If BusArea = "HELP" Call CopyRange - - - - -(Copy values from HELP Sheet) Call Vlookup - - - - - (Loop to get the value from the Help Sheet copied) End Sub My problem is our business areas is 30 (30 sheets also), so it means i need to do 30 IF scenarios also, and if we have to add new business areas, which is another sheet I need to do some coding again. Thanks in Advance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
apply Macro to all sheets in workbook - loop | Excel Programming | |||
Existing Code to loop thru all w.sheets in wb | Excel Programming | |||
Nested Loop to copy sheets | Excel Programming | |||
Loop through all sheets in workbook | Excel Programming | |||
Adapt code to loop through sheets | Excel Programming |