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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -