+ Reply to Thread
Results 1 to 2 of 2

Iterate though all open spreadsheets

  1. #1
    J Shrimps, Jr.
    Guest

    Iterate though all open spreadsheets

    Have used Walkenbach's book to create
    a macro that itterates through all open worksheets
    in an Excel workbook and places the name
    of the workseet in a specific cell.
    But I don't see the code to iterate through
    ALL open spreadsheets.
    I have to rename each open worksheet in a folder
    (there's only one worksheet in each spreadsheet).
    "Sheet1" for linking purposes.
    The spreadsheets are results of an export
    from Access, which by default names
    Worksheet1 as the name of the query.
    Not viable to name each query "Sheet1".



  2. #2
    OJ
    Guest

    Re: Iterate though all open spreadsheets

    Hi,
    Dim objWb As Workbook

    For Each objWb In Application.Workbooks
    .....your code here
    Next objWb

    Hth,
    OJ


+ 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