vba - Save attachment in outlook -


the following script work fine users accessing .pst file , trying save attachment in outlook. using same script save attachment while user connected exchange server returns error message saying: "cannot save attachment. path not exist. check path" (translated dutch).

for each oattach in msg.attachments     ...     filename = msg.entryid & ".txt"     oattach.saveasfile filepath & filename next 

update & fix

the problem exchange server generates long entryid's. can cause file / path of becoming large file system, resulting in strange behaviour. fix issue path , file name should not exceed maximum length of file system.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -