+ Reply to Thread
Results 1 to 3 of 3

Selection.worksheets

  1. #1
    David
    Guest

    Selection.worksheets

    I found that the code in the title is not correct. I want to operate on each
    worksheet in the selected worksheets.
    I tried:
    for each wksht in selection.worksheets
    code
    next wksht
    What code should I use?

    --
    David

  2. #2
    Dave Peterson
    Guest

    Re: Selection.worksheets

    Something like this might work ok:

    Dim wks As Worksheet
    For Each wks In ActiveWindow.SelectedSheets
    MsgBox wks.Name
    Next wks



    David wrote:
    >
    > I found that the code in the title is not correct. I want to operate on each
    > worksheet in the selected worksheets.
    > I tried:
    > for each wksht in selection.worksheets
    > code
    > next wksht
    > What code should I use?
    >
    > --
    > David


    --

    Dave Peterson

  3. #3
    David
    Guest

    Re: Selection.worksheets

    Thanks David
    --
    David


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1