Strange VBA error

D.Moore

Senior Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Hi,

I would like to ask your kind help.

I have an Outlook VBA code (actually a pretty complex one) built in the past years step by step to cover all stuff I wanted to automatize in Outlook. One of this task to pull/move all my exchange account sent item folders content to my default exchange account.

It works all great, UNTIL it "collides" with my iphone accessing the exchange account teh same time when outlook vba does. Then, I receive the following error:


{76930095-C83D-464A-9113-0ADF78D6ED19}.png


But the error cannot be valid, as first of all function does exist:

{BFD16D13-D3C6-4416-94D4-CF82E414C7AF}.png


secondly, it works PEERFECTLY until outlook vba can access the folder for a second as my iphone does. .

I though since :

"On Error Resume Next "

is added, even if the error raised, VBA would step over it, but it doesnt.

As I know by fact that the code works perfect, and if outlook VBA retry again in couple sec will be all fine, is there any way I can ensure that if such error raised, capture it then continue ?

Many thanks for your time and help in advance!
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I thought I answered this before... :( I have a habit of composing answers then get sidetracked and forget to post or send. :( :( The forum saves drafts for a few days... but it's been longer, so my draft is gone too.

The iPhone should not have an effect, unless you are using iTunes to sync. For exchange or imap, Outlook and the phone are touching the server and it shouldn't be an issue as each has a synced copy.

As you have discovered, on error resume next doesnt work with all error types...

I wonder if adding a short delay would help. Outlook doesnt have a timer, but you can do something like

for I = 1 to 10000
next i
before that line and see if it helps.

eta: I dont know what number would be optimal.
 

D.Moore

Senior Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
BIG thank you for your time, help and reply !
I try the suggested solution immediately and let you know the result.
Allow me to ask:
- it means no other, more effective error handling than on error resume available?
- How this error can come at first place when the function indeed exist and working ?
 

D.Moore

Senior Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
I thought I answered this before... :( I have a habit of composing answers then get sidetracked and forget to post or send. :( :( The forum saves drafts for a few days... but it's been longer, so my draft is gone too.

The iPhone should not have an effect, unless you are using iTunes to sync. For exchange or imap, Outlook and the phone are touching the server and it shouldn't be an issue as each has a synced copy.

As you have discovered, on error resume next doesnt work with all error types...

I wonder if adding a short delay would help. Outlook doesnt have a timer, but you can do something like

for I = 1 to 10000
next i
before that line and see if it helps.

eta: I dont know what number would be optimal.
@Diane Poremsky: Unfortunately, this doesn't solved the problem. Any other idea ? Also May I ask if you saw may other messaeg ?
 
Similar threads
Thread starter Title Forum Replies Date
B Strange MAPI/Exchange/IMAP behaviour in OL 2016 under10.0.19044.2006 Using Outlook 0
P Strange Calendar Entries Using Outlook 4
ManaarZakaria I'm afraid of this issue, cause of strange error Exchange Server Administration 2
M Outlook.com autocomplete list invaded by strange items Using Outlook.com accounts in Outlook 7
A Outlook 2016 - adding outlook.com account creates a new/strange address Using Outlook.com accounts in Outlook 18
M Outlook adds strange characters inserted into the Subject Line Using Outlook 2
E Strange Send/Receive count Using Outlook 3
F Strange problem with calendars Using Outlook 3
dolke Strange Outlook behavior when receiving emails. More info in the content... Using Outlook 7
A Two strange calender problems in Outlook 2003 ... Using Outlook 2
S Outlook 2007 Add-in strange load behavior Outlook VBA and Custom Forms 10
B strange change in Outlook 2000 forms Outlook VBA and Custom Forms 1
E Strange save request when closing Outlook 2007 Outlook VBA and Custom Forms 4
E Strange save request when closing Outlook 2007 Outlook VBA and Custom Forms 4
S Strange Behaviour of Explorer Object. Outlook VBA and Custom Forms 1
Geldner Problem submitting SPAM using Outlook VBA Form Outlook VBA and Custom Forms 2
P VBA to add email address to Outlook 365 rule Outlook VBA and Custom Forms 0
M Outlook 2016 outlook vba to look into shared mailbox Outlook VBA and Custom Forms 0
V VBA Categories unrelated to visible calendar and Visual appointment Categories Outlook VBA and Custom Forms 2
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 3
R Outlook 365 VBA AUTO SEND WITH DELAY FOR EACH EMAIL Outlook VBA and Custom Forms 0
R Outlook 2019 VBA to List Meetings in Rooms Outlook VBA and Custom Forms 0
geoffnoakes Counting and/or listing fired reminders via VBA Using Outlook 1
O VBA - Regex - remove double line spacing Outlook VBA and Custom Forms 1
B Modify VBA to create a RULE to block multiple messages Outlook VBA and Custom Forms 0
D Outlook 2021 Using vba code to delete all my spamfolders not only the default one. Outlook VBA and Custom Forms 0
K vba code to auto download email into a specific folder in local hard disk as and when any new email arrives in Inbox/subfolder Outlook VBA and Custom Forms 0
D VBA - unable to set rule condition 'on this computer only' Outlook VBA and Custom Forms 5
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
W Can vba(for outlook) do these 2 things or not? Outlook VBA and Custom Forms 2
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
P MailItem.To Property with VBA not work Outlook VBA and Custom Forms 2
P Tweak vba so it can target another mailbox Outlook VBA and Custom Forms 1
A Outlook 2010 VBA fails to launch Outlook VBA and Custom Forms 2
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
C Outlook (desktop app for Microsoft365) restarts every time I save my VBA? Using Outlook 1
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
TedSch Small vba to kill political email Outlook VBA and Custom Forms 3
E Outlook 365 Outlook/VBA Outlook VBA and Custom Forms 11
N VBA Macro To Save Emails Outlook VBA and Custom Forms 1
Z VBA Forward vs manual forward Outlook VBA and Custom Forms 2
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
J VBA for outlook to compare and sync between calendar Outlook VBA and Custom Forms 1
A Any way to force sort by/group by on search results with VBA? Outlook VBA and Custom Forms 1
E Default shape via VBA Outlook VBA and Custom Forms 4
A Change settings Send/receive VBA Outlook VBA and Custom Forms 0
Z Import Tasks from Access Using VBA including User Defined Fields Outlook VBA and Custom Forms 0

Similar threads

Top