-
Ativação de Regras
Good morning,
I have some rules in Outlook that are disabled due to some problem that I have not yet been able to identify, there is some way via the command line that I can check if the rule is disabled and that I can enable it, because in this way I would create a schedule to do this check.
Thank you
-
what rules do you have that are disabled?
-
Good evening,
It is a rule that I create to save an attachment in a given folder, so it has an error and is disabled.
The name of the rule is Save_XML
-
-
1 Attachment(s)
Good afternoon,
It is an "image" rule that executes a script "below"
Sub Project(Item As Outlook.MailItem)
Code:
Public Sub Process Attachment(Item As MailItem)
Dim Atmt As Attachment
Dim fileName As String
Dim moveToFolder As Outlook.MAPIFolder
For Each Atmt In Item.Attachments
If Right(Atmt.fileName, 3) = "xml" Or Right(Atmt.fileName, 3) = "XML" Then
fileName = "\\192.168.4.15\c\ATM\ATM_SDOCe\Averbar\11362119" & Atmt.fileName
Atmt.SaveAsFile fileName
Item.UnRead = False
Item.Delete
End If
Next Atmt
End Sub
-
Good afternoon,
I need help in a situation that is occurring, I have a rule that detects that the attachment has the XML extension and saves it in a certain folder, until then it was working normally and after I switched to OFFICE 365, it keeps showing an error and the rule is disabled, how can I resolve this situation.
Thank you very much
** VBA
Code:
Public Sub Process Attachment(Item As MailItem)
Dim Atmt As Attachment
Dim fileName As String
Dim moveToFolder As Outlook.MAPIFolder
For Each Atmt In Item.Attachments
If Right(Atmt.fileName, 3) = "xml" Or Right(Atmt.fileName, 3) = "XML" Then
fileName = \\192.168.4.15\c\ATM\ATM_SDOCe\Averbar\11362119 & Atmt.fileName
Atmt.SaveAsFile fileName
Item.UnRead = False
Item.Delete
End If
Next Atmt
End Sub
-