PC Review


Reply
Thread Tools Rate Thread

Copy a worksheet that can be attached to a web-based internet system

 
 
Michael Lanier
Guest
Posts: n/a
 
      21st Jul 2009
I have designed a workbook so that based upon the following macro, a
designated worksheet ("Sheet1") will be copied and sent to Outlook
where it is mailed.

Private Sub Worksheet_Activate()
ActiveWorkbook.Worksheets("Sheet1").Copy
ActiveWorkbook.SendMail Worksheets("Sheet1").Range("A1"),
Worksheets("Sheet1").Range("A2")
ActiveWorkbook.Close False
'A1 = User's mail | A2 = User's confirmation
End Sub

If I attempt to email a workbook on a computer that does not have
Outlook (Mail, Express), this macro obviously debugs. Therefore, I
need to be able to make a copy that can be easily accessed, renamed
and attached to web-based systems such as hotmail and yahoo. I would
appreciate any help fashioning a macro that will accomplish that
goal. Thanks.

Michael
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      21st Jul 2009
Hi Michael , try CDO
http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Michael Lanier" <(E-Mail Removed)> wrote in message
news:18e35ffb-8324-443d-9a8d-(E-Mail Removed)...
>I have designed a workbook so that based upon the following macro, a
> designated worksheet ("Sheet1") will be copied and sent to Outlook
> where it is mailed.
>
> Private Sub Worksheet_Activate()
> ActiveWorkbook.Worksheets("Sheet1").Copy
> ActiveWorkbook.SendMail Worksheets("Sheet1").Range("A1"),
> Worksheets("Sheet1").Range("A2")
> ActiveWorkbook.Close False
> 'A1 = User's mail | A2 = User's confirmation
> End Sub
>
> If I attempt to email a workbook on a computer that does not have
> Outlook (Mail, Express), this macro obviously debugs. Therefore, I
> need to be able to make a copy that can be easily accessed, renamed
> and attached to web-based systems such as hotmail and yahoo. I would
> appreciate any help fashioning a macro that will accomplish that
> goal. Thanks.
>
> Michael


 
Reply With Quote
 
Michael Lanier
Guest
Posts: n/a
 
      21st Jul 2009
Thanks Ron. I can tell it will be a bit of a struggle, but I think I
can plow through. Thanks again.

Michael
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have a row copy to another worksheet based on dropdown v Shizmonkey Microsoft Excel New Users 1 12th Aug 2009 01:22 PM
copy partial worksheet to a different worksheet based on date?? Kevin J Prince Microsoft Excel Discussion 4 8th Sep 2007 07:01 AM
copy graph from a Worksheet based on a field in another Worksheet =?Utf-8?B?SmltIEsuIC0gU0dC?= Microsoft Excel Worksheet Functions 2 6th Jul 2007 06:08 PM
Copy Row to worksheet based on criteria JoePineapples Microsoft Excel Misc 1 7th Mar 2007 09:05 AM
Copy Worksheet without VB code attached? Chris McFarland Microsoft Excel Programming 0 23rd Jun 2004 07:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:06 PM.