Search results

  1. M

    Application_NewMailEx for shared mailbox

    Use the ItemAdd event instead. Here's a sample: Print Emails Automatically - VBOffice In the Startup procedure you need to point it to the shared mailbox folder.
  2. M

    VB6 Add-in fails to load in Outlook 16 - message useless

    If a DLL is really not registered, then Outlook cannot load it. So I'd start looking there. If you use the project compatibility mode, there can be lots of entries in the registry. Maybe your way to unregister left some entries there. Just curious, why do you have two different versions, why...
  3. M

    Global variables in ThisOutlookSession

    Not at all. Add a module, not class module, and there declare the global variables.
  4. M

    Identify Number of email messages opened

    Here's a sample: Inspector Wrapper: Receive Events of Multiple Emails - VBOffice
  5. M

    Outlook 2016 is killing me with object.links

    Try Recipient.AddressEntry.GetContact
  6. M

    Categorise emails on sending - macro not working in Preview mode

    You already get the Item variable passed into the procedure. The highlighted line of code can be removed.
  7. M

    Switch template with account

    Changing that address triggers the PropertyChange event twice, once for SendUsingAccount, once for SentOnBehalfOfName. As to the layout, good luck. Look at the messages's HTMLBody property.
  8. M

    VBA find and open an email without looping thru each email in the inbox

    Get the EntryID instead of the SearchKey, and then use GetItemFromId to retrieve the object. If the item is not stored in your default store, get the StoreID as well.
  9. M

    How to set subject line in replies using VBA

    Use the Instr function instead of the Left function. If it returns 0, add the company name.
  10. M

    UserProperties VBA to move message to another folder

    I don't see what this has to do with attachments
  11. M

    Close Oulook after sending emails via vba without outbox getting stuck.

    Wait until the item gets added to the Sent Items folder, or check whether Items.Count in the outbox is 0.
  12. M

    UserProperties VBA to move message to another folder

    Instead of looping through all the user props, just call UserProperties.Find(name).
  13. M

    ...administrator has limited the number of items you can open simultaneously

    Look at the code, instead of looping through Items, you'd loop through Selection.
  14. M

    ...administrator has limited the number of items you can open simultaneously

    See if this helps: Limit the Size of Loops - VBOffice
  15. M

    How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts

    The Addin must provide a public method that you can call. You still need to add a script to the VBA project that will call the Addin.
  16. M

    Open a folder / subfolder of a PST in single click

    Without knowing the mentioned article, you can move emails based on criteria like subject, sender, etc. That doesn't work for opening any folder. That is for a one-click solution you'll need 1 button per folder.
  17. M

    Show mail items in folder macro

    See Cange Folder Settings here: Looping Recursively Through Folders and Subfolders - VBOffice
  18. M

    Print email message and attachment in order

    The documents are printed in order of the time the spooler receives them. If there are multiple ones coming in at the same second, they get any other order, maybe by subject - I don't know. So, just wait two seconds before you send the next document to the printer.
  19. M

    Question: Is there a rule that will save email in Windows Explorer

    Rules cannot save emails to the file system. Here's a macro you can use as a starting point: Save Emails to the File System - VBOffice Keep in mind, you'll loose some advantages of having the emails in Outlook, like advanced searches, grouping etc.
  20. M

    Custom Application Form send Email to Another User

    I think it's a security issue. See the trust center, email security, script in folders, maybe ticking one or both options solves it.
Back
Top