Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    102

    Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •