I've been trying to import & export workday exceptions of MS-Project from/to Excel. Daily, monthly or yearly exceptions are no problem, but weekly exceptions do cause me some trouble:
By recording, I understand that for each combination of several weekdays selected (via the tick-boxes) the property "pjWeekday" (or DaysOfWeek in the recorded code) is a specific Integer (6, 10 & 18 in the examples below).
Example of recorded code:
ActiveProject.BaseCalendars("Copy of Standard").Exceptions.Add Type:=6, Start:="01.01.2022", Finish:="18.01.2022", Name:="TestWeekly1", Period:=1, DaysOfWeek:=6
ActiveProject.BaseCalendars("Copy of Standard").Exceptions.Add Type:=6, Start:="01.02.2022", Finish:="02.02.2022", Name:="TestWeekly2", Period:=1, DaysOfWeek:=10
ActiveProject.BaseCalendars("Copy of Standard").Exceptions.Add Type:=6, Start:="01.03.2022", Finish:="03.03.2022", Name:="TestWeekly3", Period:=1, DaysOfWeek:=18
Is there any way to get a list of all integers for all combinations (or is an algorithm behind it) without recording all different possibilities ?
Greatful for any advice, Chris