Change the All Day Event Default Free/Busy to "Busy"

Status
Not open for further replies.

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
C

Carsten

Hi,
I used the script for Outlook 2013 as described in the article. But during test of the script I received the error message:
Run-time error 91: Object variable or With block variable not set
It seems to come from the command lines:
If TypeName(m_Inspector.CurrentItem) = "AppointmentItem" And _
m_Inspector.CurrentItem.AllDayEvent = True And _
m_Inspector.CurrentItem.CreationTime > Now Then

What can I do?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Did you restart outlook? The application start sets the m_inspector object.
 
C

Carsten

I followed your instructions:
- saved changes
- created digital certificate
- certified the script
- saved again
- restarted Outlook
- confirmed certificate
- created new entry: it worked
But then after some minutes the error messages appeared again. Script has been stopped.
Let the script run in developer tool (as described on your page): error message came again.
Any Outlook or Office App which can disturb? I run Windows 8.1, Office 365 ProPlus.
[DOUBLEPOST=1444805005,1444803281][/DOUBLEPOST]Update on the post before:
the error message after starting Outlook occurs directly when I open a mail. The error message is now:
"runtime error 438: Object doesn't support this property or method"
Debugging shows the same lines as mentioned before which caused the error.
 
Status
Not open for further replies.
Top