+ Reply to Thread
Results 1 to 2 of 2

Changing Sheet Name

  1. #1
    Andym
    Guest

    Changing Sheet Name

    Help.
    I have a Macro that takes data from a Excel file which is saved automaticly
    daily to the same location, however the sheet name changes every time. Is
    there a way to make the macro select that sheet regardless of the name of the
    sheet??

    thanks

  2. #2
    Tom Ogilvy
    Guest

    Re: Changing Sheet Name

    If it is the first sheet, you can refer is as index value 1

    Worksheets(1).Activate

    if the last sheet

    worksheets(worksheets.count).Activate

    --
    Regards,
    Tom Ogilvy

    "Andym" <[email protected]> wrote in message
    news:[email protected]...
    > Help.
    > I have a Macro that takes data from a Excel file which is saved

    automaticly
    > daily to the same location, however the sheet name changes every time. Is
    > there a way to make the macro select that sheet regardless of the name of

    the
    > sheet??
    >
    > thanks




+ 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