#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default Sendkey

I have an Excel workbook with multiple sheets. I need to automate sending
each sheet by it's self as an attachment. I dont know much about programming
but I figured out how to copy the information I need, open a new workbook,
paste the information into that workbook and then by using "SendKeys "%(FDA)"
an email will popup with the file attached.

At that point the user would send the email out and then the rest of macro
needs to run. Which would be for it to close the new workbook without saving
it and go to the next sheet in the first or master workbook and do the same
thing.

Everything seemed to work except two things. (1)If I put any command or
code after the sendkey, the sendkey is ignored. (2)If I try using a hot key
ie alt-c, the sendkey is ignored.

This is just the way I thought to do it. If there is a better way, any
suggestions are welcome

Thank you in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sendkey

I know it is counter intuitive but just use Application.Dialogs(189).Show

It will load the current workbook into the default email client without you
having to use sendkeys.

"Jordan" wrote in message
...
I have an Excel workbook with multiple sheets. I need to automate sending
each sheet by it's self as an attachment. I dont know much about
programming
but I figured out how to copy the information I need, open a new workbook,
paste the information into that workbook and then by using "SendKeys
"%(FDA)"
an email will popup with the file attached.

At that point the user would send the email out and then the rest of macro
needs to run. Which would be for it to close the new workbook without
saving
it and go to the next sheet in the first or master workbook and do the
same
thing.

Everything seemed to work except two things. (1)If I put any command or
code after the sendkey, the sendkey is ignored. (2)If I try using a hot
key
ie alt-c, the sendkey is ignored.

This is just the way I thought to do it. If there is a better way, any
suggestions are welcome

Thank you in advance for your help.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendkey help needed Ryk Excel Discussion (Misc queries) 4 November 6th 06 04:50 AM
Is there are 'sendkey' statement to activate the spacebar? Zakynthos Excel Programming 2 August 26th 05 03:59 PM
SENDKEY method jason Excel Programming 4 November 3rd 04 05:13 PM
sendkey problem Anders Andersson[_2_] Excel Programming 5 September 29th 04 05:53 PM
SendKey Question Matt Excel Programming 0 August 9th 04 07:59 PM


All times are GMT +1. The time now is 05:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"