+ Reply to Thread
Results 1 to 3 of 3

pop up box, searching worksheets and running macros help please

  1. #1
    Paul
    Guest

    pop up box, searching worksheets and running macros help please

    I have a workbook The first sheet is a summary of a work roster. Then there
    are other sheets with each day of the month. Is it possible to design a pop
    up box, which lets the user input a date, then goes to that worksheet? The
    dates for each seperate worksheet are found in a2 of every sheet.

    would so love your help.... Thanks in advance

  2. #2
    Registered User
    Join Date
    04-21-2006
    Posts
    61
    I think you would want to fetch the date you want with something like

    WantDate = Application.InputBox("Enter Date Required")

    then search through each worksheet comparing WantDate with A2

    Something like...

    numofsheets = Activeworkbook.sheets.count
    i = 1
    while i <= numofsheets
    do
    sheets(i).activate
    if Range("A2") = WantDate
    exit sub
    else
    i = i+1
    loop
    wend


    Not tried it, but it should be close!

    Regards,

    Gareth
    Quote Originally Posted by Paul
    I have a workbook The first sheet is a summary of a work roster. Then there
    are other sheets with each day of the month. Is it possible to design a pop
    up box, which lets the user input a date, then goes to that worksheet? The
    dates for each seperate worksheet are found in a2 of every sheet.

    would so love your help.... Thanks in advance

  3. #3
    Registered User
    Join Date
    06-14-2006
    Posts
    2
    Hi,

    For user entry you can use input box

    dim var
    var=application.inputbox("prompt message")
    then you could loop through all the sheet and compare the var value with cell a2 in each sheet.

+ 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