LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Search and add numbers from many WBs depending on ID column

Assuming all the required workbooks are open, and assuming you are
doing the sensible thing and keeping your application workbook (with
the code in) separate from the data, you can loop through the open
workbooks like so...

Dim wbk as Workbook
Dim wks as Worksheet

' Loop through open workbooks
For each wbk in Application.Workbooks
'Ignore application workbook
if wbk < Thisworkbook then

'Loop through worksheets in each workbook
For each wks in wbk.Worksheets
'Put your search code etc. in here
'
'

Next wks

End If
Next wbk


That's enough for now - I mean you wouldn't want me to do the whole
thing for you would you. ?;^)

Kind regards, NickH



 
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
Counting Cells in a column depending on another column but excluding duplicates rwenger Excel Discussion (Misc queries) 0 April 11th 10 01:06 PM
How do I search for repeated numbers in same column MB New Users to Excel 1 October 28th 09 07:16 PM
Total numbers in column where the row cell matches the search crit Kane Excel Worksheet Functions 1 September 6th 09 02:11 PM
Search for duplicate entries in a column of numbers Eán[_2_] Excel Worksheet Functions 2 March 17th 09 02:35 PM
Search and add numbers from many WBs depending on ID column [email protected] Excel Discussion (Misc queries) 1 December 5th 06 10:12 PM


All times are GMT +1. The time now is 08:50 AM.

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"