Results 1 to 6 of 6

Worksheet_Selection Change Event

Threaded View

  1. #1
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86

    Question Worksheet_Selection Change Event

    Hi

    I'm fiddling with a worksheetwhere I want to be able to enter dates using a Calendar instead of punching in the dates manually.

    The Calendar is working fine but I don't know how to make it work for a range instead a single cell.

    I have the following code now:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address = "A20" Then
    Call OpenCalendar
    End If
    End Sub



    I need to have this work for the range A20:B500 - how do I do that?

    The code for the calendar I got from http://www.fontstuff.com/vba/vbatut07.htm
    And the above code I got from http://www.fontstuff.com/mailbag/qexcel02.htm



    /Møller
    Excel 2003
    Last edited by c991257; 11-20-2006 at 04:09 PM.
    --
    M?ller

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