Thread: [Solved] date picker in dropdown list
View Single Post
 
Old 08-11-2020, 04:52 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could, of course, use something like:
Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean)
With CCtrl
  If .Title = "Dropdown1" Then
    If .Range.Text = "Date" Then
      .Type = wdContentControlDate
      .Range.Text = ""
      .Range.Select
    ElseIf .Range.Text = .PlaceholderText Then
      .Type = wdContentControlDropdownList
      .Range.Select
    End If
  End If
End With
End Sub
and have 'Date' as one of the dropdown choices.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote