Hello,
I am having trouble naming an .XLS attachment from outlook. I appended the existing code because olAtt.FileName alone writes over existing files if I have multiple files with the same name:
-------------------------------
Select Case Right(olAtt.FileName, 4)
Case ".xls"
FileName = frmdownloadattchmts.TextBox1.Value & olAtt.FileName & Format(Item.ReceivedTime, "yyyy-mmm-dd")
olAtt.SaveAsFile FileName
i = i + 1
-----------------------------
Any help?
I am having trouble naming an .XLS attachment from outlook. I appended the existing code because olAtt.FileName alone writes over existing files if I have multiple files with the same name:
-------------------------------
Select Case Right(olAtt.FileName, 4)
Case ".xls"
FileName = frmdownloadattchmts.TextBox1.Value & olAtt.FileName & Format(Item.ReceivedTime, "yyyy-mmm-dd")
olAtt.SaveAsFile FileName
i = i + 1
-----------------------------
Any help?