Pretty much this at the very end of the code:
If Err.number <> 0 Then
msg = "Error # " & str(Err.number) & " generated by " _
& Err.Source & Chr(13) & "Line: " & Erl & Chr(13) & Err.Description
MsgBox msg, , "Error", Err.HelpFile, Err.HelpContext
If I do an error on purpose it works and logs it.
No logs between 24th and today though.
The Server is 2012 R2 and is running Outlook 2010 H&B.
This is getting more and more frustrating.
I send a test mail every now and then, remote log on the server and there it is the shiny blinking window...
Okay, so we had a long weekend here and guess what, it crashed. At some point between the 24. and this morning it crashed and deactivated the rules.
And I didnt get any logs about it.
So I assume that it's not the code but Outlook as the code would give me at least some kind of error...
Oooooh and I just realized what you mean.
Dim outObj As Outlook.Application
Dim objFolder As Outlook.MAPIFolder
Set outObj = CreateObject("outlook.application")
Set objFolder = pub
I just scrapped that whole part and simply use
Don't know why I didn't...
Thanks for the reply.
Do the variables persist even when the macro is done?
If so a memory issue could be the case. Didn't think of that.
I put the = nothing statement at the end of the code, let's see if it changes anything.
And yeah I use the outObj but just once to move the task to the...
sorry for the late feedback. I changed it so the mail is an attachment in the task. It is the safest way to keep it running imo.
And still it crashes after a while. The whole thing runs on a Server 2012 at the moment, the user is not logged off but locked. It runs for a while and...
Yeah when I first tried to do it, I just copied the body, removed the double spaces and reattached all images. The thing is, when someone get a mail marked as spam by our firewall, they get a mail, forward it to support and we check it and release or block it.
But the mail contains a huge...
I tried experimenting with RTF/HTML convertion, no luck with that.
But I'll give it another shot tomorrow.
Yeah it's kinda weird. Most of the time it works just fine, then all of a sudden it crashes and disables the rules. I created a rule to check if the other rule is active, if not, activate...
Hello Slipstick forum!
I got a little macro running which turns specific mails into tasks basically working as a tiny supportsystem for me to keep track of stuff at my company.
The thing is that it won't keep the formatting. I tried 3 way to do this:
Right now I just use...