|
-
Jul 2nd, 2003, 04:54 PM
#1
Thread Starter
Member
SOLVED excel vba - looping though all worksheets
I need to be able to loop through all the worksheets of a document w/ out knowing the names of the worksheets. Does anyone know how I could go about doing this?
Thanks,
Alex
Last edited by LodBot; Jul 3rd, 2003 at 01:03 PM.
-
Jul 3rd, 2003, 12:38 AM
#2
You get the number of all Worksheets using:
VB Code:
ActiveWorkbook.Sheets.Count
And you can call each of those Sheets using
VB Code:
ActiveWorkbook.Sheets(Number)
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jul 3rd, 2003, 10:25 AM
#3
Thread Starter
Member
works great 
Thanks for the help
-
Jul 3rd, 2003, 10:30 AM
#4
You're welcome, but don't forget to put "solved" in the original topic.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|