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: 3
Default Subject line in E-mail

Hello.

I Found this vba code via a google search which I changed just a little
bit. It does what I want besides that I want it to generate a subject line
in the E-mail that is Avräkning + the worksheet name. How would I do that.
Sub mail()
For a = 1 To ThisWorkbook.Worksheets.Count - 1
With Sheets(Sheets.Count)
Dim MyArr As Variant
MyArr = .Range(.Cells(1, a), .Cells(Rows.Count, a).End(xlUp))
End With
Sheets(a).Copy
ActiveWorkbook.SendMail MyArr, "Avräkning"
ActiveWorkbook.Close False
Next
End Sub

TIA

Ola Sigurdh


 
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
e mail same body different subject Marilyn Excel Discussion (Misc queries) 3 May 11th 08 12:31 AM
Hyperlink mailto - ref cell for mail subject LDUNN1 Excel Worksheet Functions 2 October 25th 06 02:01 PM
Variables in the subject line of an e-mail hyperlink midol559 Excel Discussion (Misc queries) 0 September 8th 06 04:30 PM
Hyperlinking e-mail addresses from a listing to show a subject lin Flo Excel Discussion (Misc queries) 1 June 2nd 06 07:43 PM
Customize Subject Line terezakat Excel Discussion (Misc queries) 0 July 25th 05 10:47 PM


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