Solved

vb coding for for excel sheet

Posted on 2003-11-02
3
180 Views
Last Modified: 2010-05-03
i want to send one worksheet out of several worksheets in excel.  I want it to auto pickup the email address on the page and pPIut an auto subject in the subject line.  Right now I am going to the worksheet I want to send and choosing FILE-SENDTO-MAIL RECIPENT-ENTER EMAIL ADDRESS ALREADY ON THE PAGE AND TYPE IN THE SAME SUBJECT-SEND
WOW so many steps   You anyone help???
0
Comment
Question by:groupsource
3 Comments
 
LVL 3

Accepted Solution

by:
YeaYuh earned 125 total points
ID: 9671149
Hey,

Sub SendEmail()
' Change the A1 to the cell of the email address on your worksheet
' "test" is the subject line

    Application.Dialogs(xlDialogSendMail).Show ActiveSheet.Range("A1").Value, "test"
   
End Sub

Otherwise try looking at this website to see if any of the code meets your requirements.
http://www.rondebruin.nl/sendmail.htm


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 76
VB6 Compile Compatibility Issue 4 87
vb6 connector to mongodb 2 45
MsgBox 4 43
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now