don't understand why you need to link anything

來源: 2012-09-24 14:41:54 [博客] [舊帖] [給我悄悄話] 本文已被閱讀:

The most important thing in computer programming is "Loop".  Humans hate repetative work and computers love them.  As long as you can do loop, you are fine.

Private Sub test1()

    Dim ws As Worksheet

    For Each ws In ThisWorkbook.Worksheets

        Debug.Print ws.Name

        'Insert your code here

    Next ws

End Sub