Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default search over range of worksheets

I have 30 worksheets in the workbook, but I only want to search from "alpha"
to "queen" (putting various results in "Results").
How do I program for each worksheet form "alpha" to "queen"?
'For each ws in Thisworkbook.Worksheets ....'

(note: I have a changing number of worksheets between "alpha" and "queen" so
I cannot use 'worksheets.count')

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default search over range of worksheets

for iWS = worksheets("alpha").index to worksheets("queen").index
set ws = worksheets(i)
next i

HTH
--
AP

"Kanga 85" a écrit dans le message de
news: ...
I have 30 worksheets in the workbook, but I only want to search from
"alpha"
to "queen" (putting various results in "Results").
How do I program for each worksheet form "alpha" to "queen"?
'For each ws in Thisworkbook.Worksheets ....'

(note: I have a changing number of worksheets between "alpha" and "queen"
so
I cannot use 'worksheets.count')

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default search over range of worksheets

Thanks Ardus Petrus

"Ardus Petus" wrote:

for iWS = worksheets("alpha").index to worksheets("queen").index
set ws = worksheets(i)
next i

HTH
--
AP

"Kanga 85" a écrit dans le message de
news: ...
I have 30 worksheets in the workbook, but I only want to search from
"alpha"
to "queen" (putting various results in "Results").
How do I program for each worksheet form "alpha" to "queen"?
'For each ws in Thisworkbook.Worksheets ....'

(note: I have a changing number of worksheets between "alpha" and "queen"
so
I cannot use 'worksheets.count')

Thanks




Reply
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
Search for duplicates across three worksheets Sarah_Lund Excel Worksheet Functions 1 May 20th 08 12:29 AM
Search Range for item in seperate range [email protected][_2_] Excel Programming 6 January 9th 06 03:53 PM
search worksheets Anthony Excel Discussion (Misc queries) 11 July 14th 05 03:24 PM
How to search a range for a suburb in a large range Bogan.. Excel Programming 2 June 22nd 05 01:20 PM
Search all worksheets in a workbook... Peter Excel Discussion (Misc queries) 6 January 26th 05 11:07 AM


All times are GMT +1. The time now is 08:47 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"