ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA code to email 1 worksheet in a workbook (https://www.excelbanter.com/excel-programming/397438-vba-code-email-1-worksheet-workbook.html)

Lisab

VBA code to email 1 worksheet in a workbook
 
VBA code to email 1 worksheet in a workbook -

I would like to code a function that will email one worksheet in a multi
sheet workbook. I know you can use the SendTo option on the file menu to
send the current sheet to a reciepient as the email body. However, I would
like to know the VBA code that will do the same thing and allow you to enter
the name of the worksheet you want to send.

Any help will be greatly appreciated
Thanks.



Ron de Bruin

VBA code to email 1 worksheet in a workbook
 
Hi Lisab

See the examples on my site
http://www.rondebruin.nl/sendmail.htm

You can use the example workbooks to test the code



--

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


"Lisab" wrote in message ...
VBA code to email 1 worksheet in a workbook -

I would like to code a function that will email one worksheet in a multi
sheet workbook. I know you can use the SendTo option on the file menu to
send the current sheet to a reciepient as the email body. However, I would
like to know the VBA code that will do the same thing and allow you to enter
the name of the worksheet you want to send.

Any help will be greatly appreciated
Thanks.



Lisab

VBA code to email 1 worksheet in a workbook
 
Thank you very much!

"Ron de Bruin" wrote:

Hi Lisab

See the examples on my site
http://www.rondebruin.nl/sendmail.htm

You can use the example workbooks to test the code



--

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


"Lisab" wrote in message ...
VBA code to email 1 worksheet in a workbook -

I would like to code a function that will email one worksheet in a multi
sheet workbook. I know you can use the SendTo option on the file menu to
send the current sheet to a reciepient as the email body. However, I would
like to know the VBA code that will do the same thing and allow you to enter
the name of the worksheet you want to send.

Any help will be greatly appreciated
Thanks.





All times are GMT +1. The time now is 11:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com