Found a way to modify the starting date of a recurring appointment. Here' how it's done:
1) Determine if the appointment item is recurring using the .IsRecurring property of the AppointmentItem object.
2) if IsRecurring is True, then use the .PatternStartDate property of the RecurrencePattern...
It turns out that nearly all of the manually created AppointmentItems are recurring and I guess there's no option in VBA to modify the start date/time of a recurring appointment (is there?). Non-recurring appointments work ok.
On some items of type AppointmentItem, I can set the Start property either as data type String or Date, other items of same type (I verified this by use TypeName (item)), I get either 'object does not support method' (if item declared as Object) or 'type mismatch (if item declared as...
Some examples of the bogus info provided by ChatGPT: trying to use .Address property of RuleCondition object (no such property) and .Filter property of Rule object (no such property).
Here's the code sample I tried to get to work. Please note that this reference: RuleConditions.OnLocalMachine property (Outlook) states that 'onlocalmachine' property is read-only then later seems to contradict itself with the following: "This property of the RuleConditions collection always...
I've tried following the guide on this page: Specifying Rule Conditions, but nothing works. According to this page, this condition is able to be set with VBA, but any attempt to set the condition results in "object doesn't support property or method" or "type mismatch". Even tried using...
Update on item 1 above - now solved:
The rule that VBA it was choking on (see 4/4 post) had an exception condition "except if sender in Contacts". This may have been caused by my Outlook Contacts (which is actually iCloud Contacts) had gotten corrupted and I was getting a "...set of folder...
Going back to my 4/4 post where I listed the 2 baffling error conditions:
I gave up on this one - deleted the rule that was causing the issue, even though I was able to run the rule using the Rules Wizard (Manage Rules and Alerts, Run Rules Now, etc.) as I had stated originally. To me this is...
Going back to my 4/4 post where I listed the 2 baffling error conditions:
I gave up on this one - deleted the rule that was causing the issue, even though I was able to run the rule using the Rules Wizard (Manage Rules and Alerts, Run Rules Now, etc.) as I had stated originally. To me this is...
Didn't have correct notification settings, so I didn't see the latest response until now.
Didn't understand your response - I'm attempting to write a VBA macro to work with rules and it's failing the rule.execute method when the current folder is a search folder - nothing documented about such...
Lewis-H, not sure what your last post has to do with the issues I presented with Outlook and how rules handling is turned into mush by VBA in 2 different ways (they work fine creating a rule by rules wizard or by running rules via Rules Manager).
To answer your question, strSenderEmail does have the correct value of the the selected message email sender's email address, so that mystery remains.
I did encounter one additional problem. When the rule.execute method was invoked in a search folder (such as 'Unread Mail'), I'd get an VBA...
Was trying to edit the code snippet (I had HTML style <> instead of []), but now it's denying me from editing the post (it allowed it just a minute ago) ??!!
I created an Outlook VBA macro to allow the user to automatically create/run a rule to move the currently selected or opened email to a user-selected Outlook folder path. It will only create the rule if it doesn't already exists, and in either case it will prompt to run the rule on all message...
Looks like you didn't read my post and just copy/pasted. I HAD ALREADY DONE that registry edit as I had clearly stated in my original post and even gave a link to the source.
I have Outlook 2010 on Windows 7.
In my scenario, I'm trying to archive emails dated ('receive date') over 3 years from today's date (I have added the registry entry regarding 'modified date' mentioned here: AutoArchiving by Received Date in Outlook). The PST file is large (just under 50gb)...
As it turns out, I had copied the wrong file back to his computer - copied the correct file back
able to now delete and move items without hanging
send/receive fails with 'unable to open outlook.pst file - does not exist'
attempted SRS file delete fix as you had mentioned above - same problem...
Outlook 2010 (with latest updates) hangs while getting new messages or attempting to delete messages (with auto-send/rcv turned off). Here's what I've tried so far (with no success):
chkdsk /f - no errors found - retried Outlook - same failure
MBAM (MalwareBytes) - no malware found - fail...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.