LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to "wrap" email names in a Macro

A gentleman was good enough to help me with a macro that will open up
Outlook, "grab" a list of names in the macro, attach a file and have it
ready to send out. I use this at work so that everyone does not have to
have the names in a distribution list. The only problem is that the list of
names is growing that we send this to. It is information so that our
vendors and contractors will have the right coding information for
invoices.

My question is, what does one do when you run out of space when adding names
on the line? I thought I read somewhere what to do, but I can't remember
how to do it now. I use the TO, CC and also BCC but it does not offer
enough room.

Any help would be appreciated. Thanks

Sub Send_Paykeys()
Dim objOL As New Outlook.Application
Dim objMail As MailItem

Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)

With objMail
.To =
.CC = ""
.Subject = "Paykeys - AFE Numbers ABE Numbers - Focus Numbers and Job
Work Order Numbers"
.Body = "" & vbCrLf & vbCrLf
.Attachments.Add "\\SERVER\DATA\TCO\GS_Invcs_2006.xls"
.Display
End With

Set objMail = Nothing
Set objOL = Nothing
End Sub



 
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
Macro to email with "active row" info Ron de Bruin Excel Discussion (Misc queries) 13 October 25th 06 07:31 PM
Help,, need macro to replace 'space' in list of names with "." (dot), then compare ss jay Excel Programming 0 February 23rd 06 05:33 PM
Icon for "Wrap" and for "Centre Across Selection" BeSmart Excel Worksheet Functions 2 November 16th 05 06:44 PM
How do you hide macro names from showing in "Tools"? Nashua Excel Programming 1 November 9th 05 03:50 PM
Backup to specific folder if workbook names begins with "NSR" or "MAC" GregR Excel Programming 3 May 6th 05 12:24 AM


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