Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2003

Tip: Looking for answers? Try searching our database.

Using 'SendKeys' in a COM object ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noone - 27 Sep 2003 01:03 GMT
Hello all,
Struggling through this ;)

Anyways, I am close to fully converting my VBA macro into a COM object, but
I seem
to have hit a snag.

Wherever I have 'SendKeys' statements, they are ignored, skipped over, or
something.
For example, this works fine in VBA as a macro, but not in my COM version.

SendKeys "^f"
SendKeys "#Unsolicited Email"
SendKeys "%s"
SendKeys "{DELETE}"

Any ideas ?
Thanks.
crappybottom - 28 Sep 2003 22:14 GMT
> Anyways, I am close to fully converting my VBA macro into a COM object, but
> I seem
[quoted text clipped - 8 lines]
> SendKeys "%s"
> SendKeys "{DELETE}"

instead of using SendKeys, I am going to try and adapt this code into mine:

Set objExplorer = Application.ActiveExplorer
If objExplorer.Selection.Count > 0 Then
   Set SafeItem = CreateObject("Redemption.SafeMailItem")
   Set myForward = objExplorer.Selection.Item(1).Forward
   SafeItem.Item = myForward
   With SafeItem
       .Recipients.Add spamaccount@mydomain.com
       .Send
   End With
End If
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.