+ Reply to Thread
Results 1 to 2 of 2

Lookup worksheet agony

  1. #1
    Jez
    Guest

    Lookup worksheet agony

    Hi,

    I cant workout how I can enter on a front sheet the name of the week (eg
    Cell A1 input Monday) and this then looks through the work tabs to find what
    i have input and goes to that work sheet. (eg looks through all worksheets
    and finds monday and shows this worksheet.

    Help :-)

    Thanks,
    Jez



  2. #2
    Bob Phillips
    Guest

    Re: Lookup worksheet agony

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    On Error GoTo ws_exit:
    Application.EnableEvents = False
    If Target.Address = "$A$1" Then
    On Error Resume Next
    Worksheets(Target.Value).Activate
    On Error GoTo 0
    End If

    ws_exit:
    Application.EnableEvents = True
    End Sub

    'This is worksheet event code, which means that it needs to be
    'placed in the appropriate worksheet code module, not a standard
    'code module. To do this, right-click on the sheet tab, select
    'the View Code option from the menu, and paste the code in.


    --
    HTH

    Bob Phillips

    "Jez" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I cant workout how I can enter on a front sheet the name of the week (eg
    > Cell A1 input Monday) and this then looks through the work tabs to find

    what
    > i have input and goes to that work sheet. (eg looks through all worksheets
    > and finds monday and shows this worksheet.
    >
    > Help :-)
    >
    > Thanks,
    > Jez
    >
    >




+ 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