+ Reply to Thread
Results 1 to 2 of 2

Macro to find current month in row

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    Stratford-upon-Avon
    MS-Off Ver
    Excel 2007
    Posts
    89

    Macro to find current month in row

    The code below finds the current date in column A and positions it under the frozen pane.

    Sub Workbook_Open()
    Application.Goto Sheets(1).Columns(1).Find(DateValue(Date)), True
    End Sub


    I want the code to do exactly the same as above, but to look for the current month and not the current day. The dates in column A are:

    01/01/2012
    01/02/2012
    through to
    01/12/2012
    Last edited by Stratfordoaks; 12-20-2012 at 03:16 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to find current month in row

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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