|
-
Jul 20th, 2009, 06:32 PM
#1
Thread Starter
Member
[OUTLOOK] Trying to use SendKeys
This is kind of an addendum to my last thread titled "Trying to run sub on Send"
I thought of a way around my issue and it is this...SendKeys. I am not familiar with the syntax of this so I am asking for a little help.
I have developed a macro for fixing name formats in Outlook that the Check Names feature won't correct, but my problem that I can't seem to get around is the Check Names dialog box. I thought that if I could send an ENTER that it would close the dialog box and allow my code to run.
Any help would be greatly appreciated.
Thanks,
Garrett
-
Jul 21st, 2009, 03:42 AM
#2
Re: [OUTLOOK] Trying to use SendKeys
Nope, wont work. The dialog is modal so no other processing of your vba code will execute until the dialog is dismissed.
Yo would have to write an ActiveX out of process exe and invoke it before th dialog popups.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 21st, 2009, 10:21 AM
#3
Thread Starter
Member
Re: [OUTLOOK] Trying to use SendKeys
Thank you for the reply and saving me hours trying to get it to work when it never would have. I will see if I have any tools to do any ActiveX work at my work PC, but not sure that will be the case as I am not a Developer and don't have all the software that one should have. I am just a project assistant with an active imagination for solving problems with code.
Garrett
-
Jul 21st, 2009, 03:57 PM
#4
Re: [OUTLOOK] Trying to use SendKeys
Yea you wont be able to do it with VBA as it will all be in same process thread. You may want to look at creating a timer as that would be the next thing to look at before an activex exe
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|