Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2020, 04:52 PM
macropod's Avatar
macropod macropod is offline date picker in dropdown list Windows 7 64bit date picker in dropdown list 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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
date picker in dropdown list Selecting a Date in Date Picker and Having it change dates throughout joshuaran Word VBA 2 03-14-2018 09:24 PM
date picker in dropdown list Date picker content control to always show current date. lucky16 Word VBA 2 07-01-2016 01:14 PM
dropdown lists and date picker added to word doc. greg__reynolds Word 3 05-19-2014 12:19 AM
Possible to link a date picker to another date picker? tubbz Word 0 05-07-2014 01:23 PM
Date picker trintukaz Excel 0 12-30-2011 12:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft