Search results

  1. M

    GetSelectNamesDialog Pre-fill search box

    then most likely you haven't copied the code as it is but do call Display before calling SetTimer.
  2. M

    GetSelectNamesDialog Pre-fill search box

    Here's a sample: GetSelectNamesDialog Pre-fill Search Box - VBOffice
  3. M

    Macro to clear flags?

    MailItem.ClearTaskFlag should do it.
  4. M

    set a flag task date as the next weekday

    Copy all the sample. The first two, MarkItemAsTask and GetCurrentItems, are missing. Then use the samples shown above to call the MarkItemAsTask function.
  5. M

    set a flag task date as the next weekday

    See the sample for Outlook 2007 here: Flag an Email for Follow-up - VBOffice See also the sample for how to call the function. Easiest is to have seven such functions. On systems where monday is the first day of the week, this one is for next tuesday: Public Sub NextTuesday() MarkItemAsTask...
  6. M

    outlook 2010 mail item count doesnt match display

    Do you remove the items in your loop? If so, loop backwards. While Count correctly returns the remaining items, it's the index that points to non-existing items.
  7. M

    GetTable Add body

    No. The boolean property "urn:schemas:httpmail:hasattachment" reveals only whether or not it has attachments. For details you need to open the message.
  8. M

    GetTable Add body

    Instead of "Body" use its DASL name "http://schemas.microsoft.com/mapi/proptag/0x1000001F"
  9. M

    Print Automatically Attachments

    simply copy&paste the code as it is, and do only the mentioned modifications.
  10. M

    Print Automatically Attachments

    Here's a sample for printing automatically: Print Attachments Automatically - VBOffice In the ItemAdd event replace the PrintAttachments line by: if instr(Item.Subject,"Rechnung")>0 or instr(Item.Subject,"Invoice")>0 then PrintAttachments Item endif (Extend the If statement to suit your...
  11. M

    Use VBA to add <style> tag to Email.

    My knowlegde about regex is 0. However, what I see is that your code has not relation to any email. Probably, one of the Replace arguments must point to the HTMLBody property of the email you want to edit.
  12. M

    Paste content to Excel when .txt file (attachment) is opened

    Triggering it when you open the attachment wouldn't be easy, there's no event in Outlook for that. Instead write a macro that saves the selected attachment (see ActiveExplorer.AttachmentSelection) to the hd, then use an adapted version of your Excel macro in Outlook to import the file. To be...
  13. M

    Automatically selecting folders and deleting messages in Outlook VBA

    No, it's just a matter of using the correct name. The first line points to a top folder like Peronal Folders, the second one then points to a subfolder of it. Select the top folder, then type this into the immediate window in the VBA environment, and press enter...
  14. M

    Automatically selecting folders and deleting messages in Outlook VBA

    Replace "name" by an existing folder/store name.
  15. M

    Automatically selecting folders and deleting messages in Outlook VBA

    In order to delete items from a a collection you need to loop backwards through it. For Each doesn't work in that case. Here's a sample: Empty a Folder - VBOffice You can reference any folder this way: set folder=application.session.folders("name") set folder=folder.folders("name") etc.
  16. M

    Automatically selecting folders and deleting messages in Outlook VBA

    See the first two samples here, which show how to walk through the subfolders and do anything with it: Looping Recursively Through Folders and Subfolders - VBOffice The second sample calls the first one.
  17. M

    Creating Email - Selecting Pre-Defined Text

    Maybe this is what you're looking for: ReplyButler - Save 5 minutes on each customer e-mail!
  18. M

    Unique ID solution for all outlook items?

    Just keep in mind if you copy the item, the ID will be copied, too. So it's unique just as long as you never copy items.
  19. M

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

    Not sure what we are talking about, is the wrong version loaded, or doesn't load it at all? If the wrong version is loaded, then it has anything to do with the registry. If an Addin is not loaded at all, as the error message suggestes, then look at the startup code. If you don't have a working...
  20. M

    How to make outlook display alert appear on top of other windows whenever a new email is received?

    That'd be some work to do. When the popup is displayed, you need to get some information from it with a tool like Spy++. It shows you the name of the window and where in the structure of all Outlook windows you'll find it. Once you know that you can use this sample to find the window by code...
Back
Top