0

Using Office 365 on Macbook Pro running Ventura 13.2.1. Inserted your visual basic code for date picker in Word,

Sub AddDatePickerCC()
  Dim oCC As ContentControl
  Set oCC = ActiveDocument.ContentControls.Add(wdContentControlDate, Selection.Range)
  With oCC
    .DateCalendarType = wdCalendarWestern
    .DateDisplayFormat = "MMMM d, yyyy"
    .DateDisplayLocale = wdEnglishUS
  End With
  Set oCC = Nothing
End Sub`

Seems to pick the document date, possible to default or have the ability to select 'today'?

Have a .docm that I'd previously setup in Windows version and utilised a Repeating Section control that houses a building block selection - Possible to make this work outside of resorting to a VM/windows session?

Many thanks! Bob

Not familiar enough with VB code to make the changes, or know if it's possible.

0 Answers0