Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Programmatically addressing worksheets - painfully stupid question


"Chip Pearson" wrote in message
...
Chris,

You can do something like

Dim WS As Worksheet
For Each WS In Worksheets
WS.Cells.....
Next WS

or

Dim N As Long
Dim WS As Worksheet
For N = 1 To 53
Set WS = Worksheets("Week" & Format(N,"#0")
WS.Cells....
Next N

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com



Chip,

Many thanks. I can never get my head around collections of objects - pity
they seem so useful!

Thanks again

CS


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
big stupid question Wu Excel Discussion (Misc queries) 4 May 17th 08 05:33 PM
Stupid Question Justin Kreamer Excel Discussion (Misc queries) 1 May 2nd 08 07:47 AM
Probably a Stupid Question Paige Excel Discussion (Misc queries) 10 February 4th 08 06:52 PM
stupid question Kimberly New Users to Excel 4 May 18th 07 08:55 PM
Stupid Question mastermind Excel Worksheet Functions 1 August 5th 06 07:03 PM


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