LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default Looping through Worksheets

I think I got it! Thanks so much everyone for your help.

Greatly appreciated.

"Norman Jones" wrote:

Hi Steve,

Range("A1").Interior.ColorIndex = 3


Should be:

sh. Range("A1").Interior.ColorIndex = 3


---
Regards,
Norman



"Norman Jones" wrote in message
...
Hi Steve,

Try something like:

Sub Tester()
Dim sh As Worksheet

For Each sh In ActiveWorkbook.Worksheets

'Do your stuff, e.g.:
Range("A1").Interior.ColorIndex = 3
Next sh
MsgBox "Done!"
End Sub


---
Regards,
Norman



"Steve" wrote in message
...
Can someone lend some code that will allow me to open each worksheet in
my
workbook through code, make a change to the worksheet and move to the
next
until all worksheets have been updated. Then let me know the upate has
been
done to all worksheets in the workbook.

Thanks,






 
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
Looping through Worksheets Kirk P. Excel Programming 1 February 7th 05 05:14 PM
looping through worksheets from addin jason Excel Programming 1 October 9th 03 01:09 PM
looping through worksheets from addin BrianB Excel Programming 0 October 9th 03 09:05 AM
looping through worksheets Alex ekster Excel Programming 1 July 21st 03 03:16 AM
looping through worksheets alex Excel Programming 0 July 20th 03 06:43 PM


All times are GMT +1. The time now is 03:54 PM.

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"