Solved

vb coding for for excel sheet

Posted on 2003-11-02
3
179 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 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

20 Experts available now in Live!

Get 1:1 Help Now