+ Reply to Thread
Results 1 to 2 of 2

Need VBA to press enter for task scheduler to run.

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    Denver, Colorado
    MS-Off Ver
    2013
    Posts
    1

    Need VBA to press enter for task scheduler to run.

    This is my first post here and have zero experience writing VBA. My forte is injection molding, so I would appreciate any help.

    Our plant manager put me in charge of a daily report that needs sent out to a group of individuals within the organization. I was able to write the macros to refresh the data from our ERP system, save the excel file to a pdf, attach it to an email with the people needed and send it. My issue is that we have the send confirmation dialog box that pops up on every email we send and I need to be able to hit enter in the macro so that the task scheduler will run without any interaction.

    sendconfirmation.png

    I've been mostly getting by with youtube or google, but can't seem to find anything that is helping with this one. I tried sendkeys with no success.

    sendremindermail.JPG

    Thank you in advance for the help!

    Kevin

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Need VBA to press enter for task scheduler to run.

    Good afternoon kbacker21

    You could try the solution offered here.

    It's not really designed to be used with this particular dialog box, but it basically waits for 2 seconds (to allow th box to fully load) and then sends and Enter keypress. It may or may not work. You might also try exploring the CDO option (on the same page) - it might just fire an e-mail off without showing the warning you experience.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Task List Scheduler
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2017, 12:16 PM
  2. Scheduling A Macro To Run Via Task Scheduler
    By js0873 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-08-2017, 11:28 AM
  3. Help with Task scheduler to run a Macro
    By Lycn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2015, 03:29 PM
  4. Running Excel from task scheduler. Scheduler doesn't end
    By tony h in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2013, 09:49 PM
  5. Excel 2007 : disable task scheduler
    By ilkamalo in forum Excel General
    Replies: 0
    Last Post: 10-08-2010, 03:37 PM
  6. Connecting VBA macro to OS Task Scheduler
    By vierx2007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2010, 02:22 PM
  7. [SOLVED] task scheduler
    By Big Jim in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 06-01-2006, 02:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1