Results 1 to 3 of 3

Thread: [OUTLOOK] Trying to run a sub on send

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2009
    Location
    Oregon
    Posts
    60

    Question [OUTLOOK] Trying to run a sub on send

    I created a sub procedure that will update the names of the recipients in the To line of an email so that it will be in the LastName, FirstName format if it doens't start that way.

    I would like to know if there is a way to run this sub upon clicking of the send button or on a lostfocus event from the To line.

    Any help would be greatly appreciated

    I am using Outlook 2007.

    Thanks,
    Garrett
    Last edited by osulliga; Jul 17th, 2009 at 12:53 PM.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: [OUTLOOK] Trying to run a sub on send

    I have posted an example here

    http://www.vbforums.com/showthread.php?t=564300

    on how to capture that
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2009
    Location
    Oregon
    Posts
    60

    Re: [OUTLOOK] Trying to run a sub on send

    I tried the sample that you had posted in the other thread and it worked fine, but when I used the code that I need with my criteria the Check Names dialog box is popping up before my code has a chance to run. I have even disabled the Auto Name Checking checkbox under options and the box still pops up.

    Does anyone know away around this dialog box?

    And Thank you to Koolsid for the post, that helped clear a few things up for me.

    Garrett

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width