Results 1 to 4 of 4

Thread: Filter the microsoft date and time picker control output

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,709
    Location
    You can try, as the first lines of the Procedure
    If Target.Count > 1 Then Exit Sub
    If Intersect(Target, Range("G5:I3000")) Is Nothing Then exit sub
    Edit to add: Use the Worksheet_BeforeDoubleClick Event sub to eliminate the issue
    Option Explicit
    
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
        if Intersect(Target, Range("G5:I3000")) Is Nothing then Exit Sub
    
        Cancel = True
        with Sheet1.DTPicker21
            .Height = 20
            .Width = 20
            .Visible = True
            .Top = Target.Top
            .Left = Target.Offset(0, 1).Left
            .LinkedCell = Target.Address
        end with
    End Sub
    Last edited by SamT; 09-27-2017 at 06:43 AM.
    Please take the time to read the Forum FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •