+ Reply to Thread
Results 1 to 3 of 3

Thank You Simon :)

  1. #1
    Registered User
    Join Date
    08-02-2006
    Posts
    9

    Thank You Simon :)

    Now there will be another trick
    In one worksheet user pick-up a date (moves curson on it)
    and from another worksheet macro must find that date
    Well ...

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Hi paste this into the worksheet module (whichever you like) change the sheet names to the desired sheets and change the range to encompass the range on your sheet its going to select the date on.

    It worked fine for me as long as the date is within the range!

    Regards,
    Simon

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim mycell
    Dim rng As Range
    Dim rng1 As Range
    Dim Cell
    Set rng1 = Sheets("Sheet2").Range("A1:C20")
    Set rng = ActiveCell

    With rng1
    For Each mycell In rng1
    If mycell.Value = rng.Value Then
    Sheets("Sheet2").Select
    mycell.Select
    ElseIf rng.Value = "" Then
    Exit Sub
    End If
    Next
    End With

    End Sub

  3. #3
    Registered User
    Join Date
    08-02-2006
    Posts
    9

    Thank You again Simon :)

    Simple and working

+ 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