I am trying to exclude a file that has -PK in its name in the code below. Auto print from email. File name always is a pdf and has -PK in its name
Summary An Outlook VBA script intended to auto-print email attachments failed to exclude files containing -PK in their names. The issue arose because the script lacked a filename validation check, causing all matching file types (e.g., .pdf) to be printed regardless of their name. Root Cause The script did not include logic to filter filenames … Read more