Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Emailing Active Worksheet

I have written a bit of a macro to email the active sheet in an excel (as
below).

I want the marco to look at cell A29 in the sheet and use the value that is
in that cell as as the recipient email address. However not sure how to do
that??

Would appreciate any feedback.

Thanks

James

Sub Mail_ActiveSheet_Outlook()
Columns("A:I").Select
Selection.Copy
Columns("A:I").Select
Selection.EntireColumn.Hidden = False
Range("A1:I26").Select
Application.CutCopyMode = False
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Columns("A:I").EntireColumn.AutoFit
Range("A1").Select
Application.CutCopyMode = False
Application.Dialogs(xlDialogSendMail).Show _
arg1:=A29, _
arg2:="Bizlink Quartile Report"
ActiveWorkbook.Close
Range("A1").Select
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Emailing Active Worksheet

check ron's site

http://www.rondebruin.nl/mail/oebody.htm

--


Gary


"James T" wrote in message
...
I have written a bit of a macro to email the active sheet in an excel (as
below).

I want the marco to look at cell A29 in the sheet and use the value that is
in that cell as as the recipient email address. However not sure how to do
that??

Would appreciate any feedback.

Thanks

James

Sub Mail_ActiveSheet_Outlook()
Columns("A:I").Select
Selection.Copy
Columns("A:I").Select
Selection.EntireColumn.Hidden = False
Range("A1:I26").Select
Application.CutCopyMode = False
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Columns("A:I").EntireColumn.AutoFit
Range("A1").Select
Application.CutCopyMode = False
Application.Dialogs(xlDialogSendMail).Show _
arg1:=A29, _
arg2:="Bizlink Quartile Report"
ActiveWorkbook.Close
Range("A1").Select
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Emailing Active Worksheet

The link that Gary posted is for text in the body with Outlook Express

Look here instead
http://www.rondebruin.nl/sendmail.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Gary Keramidas" <GKeramidasATmsn.com wrote in message ...
check ron's site

http://www.rondebruin.nl/mail/oebody.htm

--


Gary


"James T" wrote in message ...
I have written a bit of a macro to email the active sheet in an excel (as
below).

I want the marco to look at cell A29 in the sheet and use the value that is
in that cell as as the recipient email address. However not sure how to do
that??

Would appreciate any feedback.

Thanks

James

Sub Mail_ActiveSheet_Outlook()
Columns("A:I").Select
Selection.Copy
Columns("A:I").Select
Selection.EntireColumn.Hidden = False
Range("A1:I26").Select
Application.CutCopyMode = False
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Columns("A:I").EntireColumn.AutoFit
Range("A1").Select
Application.CutCopyMode = False
Application.Dialogs(xlDialogSendMail).Show _
arg1:=A29, _
arg2:="Bizlink Quartile Report"
ActiveWorkbook.Close
Range("A1").Select
End Sub





Reply
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
emailing worksheet... SMarks Excel Discussion (Misc queries) 1 May 4th 10 06:08 PM
emailing worksheet Norm Excel Discussion (Misc queries) 1 May 1st 10 06:40 PM
emailing active sheet with macro BIGBOY1974AA Excel Worksheet Functions 2 July 18th 08 08:23 AM
Emailing worksheet Craig Excel Discussion (Misc queries) 2 September 12th 05 05:52 PM
emailing attaching active workbook to it to myself alistair Excel Programming 3 October 6th 04 04:24 PM


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