The whole question is, IN WHICH CALENDAR did you change the working time?
From your posts I suddenly got the imprssion that you think there is onlmy
one calendar in Project. You can have many base calendars (Project gives
yopu 3 for starters , "Standard", "Night Shift" and "24 hours" but by Change
Working time, New, you can create as many as you like.
You then have to decide which of the base calendars is to be your project
calendar (select that in Project menu, Project information) and which base
calendar is to be the base for each resource calendar.
Then you can adapt each resource calendar individually (for instance
individual days off).
I CANOT really help you as long as you cannot identify wjhich calendar you
want to read in VBA
So through VBA you can address each of these calendars.
Once you got the right calendar the method is
Therightcalendar.PERIOD(thedate).SHIFT1.START
in capital letters are the VBA keywords; the remainder is up to you.
Look up the VBE Objet Browser for BaseCalendars and the Calendar object.
But finally.. maybe a personal opinion, but I thoink it os hopeless to try
to write Project VBA without knowing Project ands understanding its objects.
Hope this helps,
--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
you are very nice jan , thanks.