Solved

vb coding for for excel sheet

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

730 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