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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -