Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default wildcards in tab. names

while searching for "wildcards in tab. names" i found this code by J.E.
McGimpsey

For Each Sheet In Opened.Sheets
If Sheet.Name Like "Scales*" Then
MsgBox Sheet.Name
End If
Next Sheet

ofcourse I give
dim sheet as worksheet

but the term <opened is also perhaps to be defined.

seeking for some more clarificationl thanks regards.
mine excel 2000




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default wildcards in tab. names

The Sheets property returns a collection of Worksheets for the supplied
object.

Opened will be either the Application object or a Workbook object - more
likely to be a Workbook object in this case.

You could just replace the word Opened with ActiveWorkbook


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"R.VENKATARAMAN" &&& wrote in message
...
while searching for "wildcards in tab. names" i found this code by J.E.
McGimpsey

For Each Sheet In Opened.Sheets
If Sheet.Name Like "Scales*" Then
MsgBox Sheet.Name
End If
Next Sheet

ofcourse I give
dim sheet as worksheet

but the term <opened is also perhaps to be defined.

seeking for some more clarificationl thanks regards.
mine excel 2000






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default wildcards in tab. names

thank ;you Mr. gelder.


Rob van Gelder wrote in message
...
The Sheets property returns a collection of Worksheets for the supplied
object.

Opened will be either the Application object or a Workbook object - more
likely to be a Workbook object in this case.

You could just replace the word Opened with ActiveWorkbook


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"R.VENKATARAMAN" &&& wrote in message
...
while searching for "wildcards in tab. names" i found this code by J.E.
McGimpsey

For Each Sheet In Opened.Sheets
If Sheet.Name Like "Scales*" Then
MsgBox Sheet.Name
End If
Next Sheet

ofcourse I give
dim sheet as worksheet

but the term <opened is also perhaps to be defined.

seeking for some more clarificationl thanks regards.
mine excel 2000








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
Wildcards in RTD JKC Excel Discussion (Misc queries) 0 February 3rd 06 07:35 PM
Use wildcards furia Excel Discussion (Misc queries) 0 November 16th 05 06:23 PM
wildcards in vba shellshock Excel Discussion (Misc queries) 3 July 21st 05 07:37 PM
VBA Wildcards - HELP! Co-op Bank Charts and Charting in Excel 1 March 30th 05 02:37 PM
Wildcards HELP ME PLEASE! Excel Programming 3 December 3rd 03 01:22 PM


All times are GMT +1. The time now is 05:23 AM.

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

About Us

"It's about Microsoft Excel"