dreagraham
11-04-2016, 06:10 AM
I was sent up to a job today in work where any files that are sent to a specific email account that includes an attachment are automatically moved to a different folder and printed (To save time as its the sales department). the print out is the email its self and the attachment. This was working fine although now it wont print out the attachment. I'm not very good with code, my boss had wrote what is shown below but even when i have applied it to my outlook (2016) it also only prints the email page and not the attachment.
VBA:
Sub myRuleMacro(item As Outlook.MailItem)
Dim FileN As String
FileN = "C:\script\script.bat"
Call Shell(FileN, 1)
End Sub
(I can't seem to be able to post the script)
I have ensured that in print options the print attachment box is ticked. I tried code from online which did work although it didn't work along with the rule created already and I'm not too sure how to actually set up the coding part because lets say its not my area. Setting up the rule its self is fine.
Any ideas?
Would be much appreciated!
:banghead::banghead:
VBA:
Sub myRuleMacro(item As Outlook.MailItem)
Dim FileN As String
FileN = "C:\script\script.bat"
Call Shell(FileN, 1)
End Sub
(I can't seem to be able to post the script)
I have ensured that in print options the print attachment box is ticked. I tried code from online which did work although it didn't work along with the rule created already and I'm not too sure how to actually set up the coding part because lets say its not my area. Setting up the rule its self is fine.
Any ideas?
Would be much appreciated!
:banghead::banghead: