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
Post a Comment