Simple task. Open new explorer and hide navigation pane.
Dim Expl1 As Outlook.Explorer:
Set Expl1 = Explorers.Add(folder, olFolderDisplayNoNavigation)
Outlok 2010 did it without problems, 2016 crashes Outlook. olFolderDisplayFolderOnly works without crashing Outlook.
So I tried ...
I have just implemented new boolean variable.
Variable is set True in newInspector event, when the item.copy happens.
When ItemChange triggers (right after newInspector), this variable ends sub. No need for calling Application_Startup().
Diane, I have added error handler and just stop sub. Everythink seems to work as it should. But I don't like it. And I am not 100% sure that its over.
I still can't get it, why this event is triggerd by copy/move. And why code works step by step.
Thank you for your help. George.
I am using code like in your example. The weirdest thing is, that the event isn't fired, if I have a break on NewInspector event, and then go thrue the code step by step. ItemChange event is only fired when code runs uninterupted.
Hi Diane. I am moving the copy of the original item. I figure it out, that event is triggered because of moving the copy to the destination folder. That folder is not monitored for changes. But ItemChange fires anyway and it cannot find copied item. When setting object, error "An object could...
I have a problem with events NewInspector and ItemChange.
In first event a copy, of contact being opened, is created. This copy is then moved to backup folder.
The second event is triggered right after the first one, probably because of a copy created in first event.
But, if I run first...
I had to migrate my simple CRM code to Outlook 2016. Code was written in OL2010.
I my code, I am depending on linking contacts (in OL2016 I had to enable this function thru registry), and retrieving information from linked contacts.
But something changed in OL2016. In 2010 version, I...
Array pName which stores names of custom fields in a contact, was created from a string of all the names, divided with chr(10). When I split this string in to array pName , items had string name & chr(10). So, I had to clen chr(10) from items in array. Just stupid mistake.
I am trying to record all values on contact open event and save them to array.
I have two arrays. cData, which will store data from object objContact and pName which already stores names of custom fields in contact.
If I type
cData(i) = objContact.UserProperties("(040) ID person") ...