PC Review


Reply
Thread Tools Rate Thread

Creating MACROS

 
 
New Member
Join Date: Jun 2009
Posts: 2
 
      1st Jun 2009
Hi,

As I am new to this I am in need of some help. I need to be able to pull information from an excel document using a macro. I want to be able to send individual emails using the email address as well as the associated user's name from an excel sheet suing a macro to send the emails one at a time.

How can this be accomplished?

Thanks...

ElliTech
 
Reply With Quote
 
 
 
 
New Member
Join Date: Jun 2009
Posts: 24
 
      9th Jun 2009
Hi ElliTech, welcome to the forum. (I was just welcomed this morning, but I guess I can welcome you!)

I know this is a little old, but if you are still looking for the answer, here is what I use :

Dim EmailAddress(1 to 10)

For i = 1 to 10
EmailAddress(i) = Worksheets(1).Cells(i, 1).value
ActiveWorkbook.SendMail _
Recipients:=EmailAddress(i), _
Subject:="Here is the list of email addresses."
Next i

This macro would send the active workbook via email.

Joe
 
Reply With Quote
 
New Member
Join Date: Jun 2009
Posts: 2
 
      10th Jun 2009
Hi Joe,

Thanks for taking the time to respond back to the post, better late than never. Oh, and welcome too...I will try out the macro soon as I have a little free time today or tommorow. Again, thanks for responding to the post.

ElliTech
 
Reply With Quote
 
Cool Cruncher
Rush's Avatar
Join Date: Nov 2005
Location: Trent Vale , Staffs
Posts: 4,084
 
      10th Jun 2009
Wow ages since i saw a For, Next loop

 



Only takes one tree to make a thousand matches only takes one match to burn a thousand trees.
 
Reply With Quote
 
Banned
Madxgraphics's Avatar
Join Date: Apr 2008
Location: In A house
Posts: 4,082
 
      10th Jun 2009
Quote:
Originally Posted by Rush
Wow ages since i saw a For, Next loop

HUH..???
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating macros AL Microsoft Excel Worksheet Functions 0 26th Mar 2010 06:55 PM
Creating Macros wanagiawolf Microsoft Access Getting Started 4 18th Jul 2008 08:19 PM
macros creating =?Utf-8?B?TlNOUg==?= Microsoft Excel Misc 2 26th Oct 2007 08:19 AM
creating macros Michael Triche Microsoft Access Macros 1 14th Apr 2006 09:18 PM
Creating macros =?Utf-8?B?dW1iYS1zcg==?= Microsoft Excel Programming 1 20th Feb 2006 03:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 AM.