If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Iterating through Worksheets in a Workbook

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-04, 16:45
ontheDB ontheDB is offline
Registered User
 
Join Date: Sep 2003
Posts: 80
Iterating through Worksheets in a Workbook

Hi,

How would you iterate through the worksheets ?

something like


For each sheet in xlsWK
xlswk.sheet.pagesetup.zoom = 50
next sheet
Reply With Quote
  #2 (permalink)  
Old 01-25-04, 13:51
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Something like this:
Code:
Sub Zoom()
    Dim ws As Worksheet
        For Each ws In ActiveWorkbook.Worksheets
            ws.Activate
            ActiveWindow.Zoom = 50
        Next ws
End Sub
Hope that helps,

Smitty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On