LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Master's please help me with my code; Doing a loop to copy valuesfrom a series Sheets of another workbook..

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
apply Macro to all sheets in workbook - loop [email protected] Excel Programming 3 July 19th 07 08:13 PM
Existing Code to loop thru all w.sheets in wb BEEJAY Excel Programming 2 October 17th 06 03:38 PM
Nested Loop to copy sheets bestie via OfficeKB.com Excel Programming 0 August 2nd 06 04:17 PM
Loop through all sheets in workbook jennie Excel Programming 7 October 26th 05 11:54 AM
Adapt code to loop through sheets Stuart[_21_] Excel Programming 3 October 7th 05 02:28 AM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"