+ Reply to Thread
Results 1 to 3 of 3

find a date using several worksheets

Hybrid View

Guest find a date using several... 08-22-2006, 02:35 AM
Guest Re: find a date using several... 08-22-2006, 02:45 AM
Guest Re: find a date using several... 08-22-2006, 08:25 AM
  1. #1
    bpotter
    Guest

    find a date using several worksheets

    I have a workbook that has several worksheets. On each worksheet I have
    a column that that has a date of the month. I am trying to write a
    macro code that will open the workbook using todays date. I have tried
    several codes and each time it opens to the last worksheet in the
    workbook. PLease help. I have been working on this for several days now
    and cannot seem to get it right.


  2. #2
    Jamie
    Guest

    Re: find a date using several worksheets

    Try this:

    WorkBook_Open()

    Dim objSheet as WorkSheet

    For Each objSheet In ActiveWorkBook.WorkSheets
    'assuming the date is in the same position on all sheets
    If objSheet.Cells(1,1).Value = strSearch then
    objSheet.Activate
    End If
    Next


    bpotter wrote:

    > I have a workbook that has several worksheets. On each worksheet I have
    > a column that that has a date of the month. I am trying to write a
    > macro code that will open the workbook using todays date. I have tried
    > several codes and each time it opens to the last worksheet in the
    > workbook. PLease help. I have been working on this for several days now
    > and cannot seem to get it right.



  3. #3
    bpotter
    Guest

    Re: find a date using several worksheets

    How do I get the date in it? What is objstring?

    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