LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default mail worksheet (multiple)

You are welcome

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"stuart" wrote in message ...
Thanks for all your help - the website was particularly
useful.

Stuart




-----Original Message-----
Hi Stuart

See my webpage for example code
http://www.rondebruin.nl/sendmail.htm

I think you like this one
http://www.rondebruin.nl/sendmail.htm#every


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"stuart" wrote in message

...
Is there any way to create a macro which will mail
particular worksheets to users without the whole
workbook? For example, I have 15 worksheets in my
workbook, each sheet relates to a specific person, and

I
only want them to see their corresponding sheet?

I can email a workbook using the code below, but that's
it (my VBA skills are non existent!) Any help

appreciated

Sub test()

Dim objOut As Outlook.Application
Dim objMess As Outlook.MailItem

Set objOut = CreateObject("Outlook.Application")
Set objMess = objOut.CreateItem(olMailItem)

strto = "
strsub = "test "
strbody = "Hi there"
With objMess
.To = strto
.Subject = strsub
.Body = strbody
.Display
.Attachments.Add ThisWorkbook.FullName
.Send
End With

End Sub


Stuart



.



 
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
mail merge multiple lines in an e-mail Guy[_2_] Excel Discussion (Misc queries) 1 December 1st 09 08:32 PM
HOW DO I E-MAIL WORKSHEET AS IS WITH ALL FORMULAS, ETC? Ron de Bruin Excel Discussion (Misc queries) 0 August 15th 08 10:44 PM
e-mail one worksheet as an attachment Marilyn Excel Discussion (Misc queries) 2 March 7th 08 09:27 PM
How to E-mail one Worksheet only Crystal Excel Discussion (Misc queries) 2 July 8th 07 05:58 PM
E-mail a worksheet Ash Excel Worksheet Functions 2 June 5th 06 05:00 AM


All times are GMT +1. The time now is 09:54 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"