?
Solved

Rules Wizard does not exit when run in a macro

Posted on 2003-04-01
3
Medium Priority
?
225 Views
Last Modified: 2010-04-07
I am using the below macro to run my rules wizard but I when I add on any {ESC} or {TAB}{ENTER} to then close the window after I run the command it doesn't work - it just leaves the window open. Could anyone assist to close the window (and then the next one) after the command has run?

SendKeys "%Tl{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}{TAB}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{DOWN}{+}{TAB}{TAB}{TAB}{TAB}{ENTER}", True
0
Comment
Question by:cjrsheldrick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
aeklund earned 1000 total points
ID: 8248810
What's happening is that the window that is being displayed is a dialog type message and when this type is displayed it stops all the code that is running.

You would have to compile your macro into an external .exe file and call it from your macro.  This way outlook cannot stop the code since it is in another process.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question