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 -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -