+ Reply to Thread
Results 1 to 7 of 7

Can I automate this task using VBA, Excel ?

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    Glasgow
    MS-Off Ver
    2013
    Posts
    1

    Can I automate this task using VBA, Excel ?

    Hi Everyone,

    Thanks in advance for any input/advice to this query I have.
    I'm new to this site and would like some assistance in the possibility of automating the process of sending emails with Excel sheets attached.

    The process is as follows:
    [LIST=1][*]Enter mailing group address[*]Enter CC[*]Enter attachment details (spreadsheet name)[*]Attach spreadsheet from folder[*]Send[*]Repeat

    I'm trying to visualize a way of this process being automated (VBA, Excel?)so time can be save re the length of time it takes to send a large amount of emails.

    I'd like any advice on the feasibility of automating this process and any pointers.


    Thanks again

  2. #2
    Registered User
    Join Date
    10-30-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Can I automate this task using VBA, Excel ?

    Yes, this is possible. You will need to have some method of mapping the files to the email recipients. You can get a listing of the files from a folder and populate a worksheet with these. Here is one suggestion:

    Please Login or Register  to view this content.
    Using Dir is another

    There is also coding that you can find on the web for automatically sending emails. You can search for this but you would need to make sure it works with your email program. Outlook coding would be easy to find.

    You can add your email message into a worksheet and the automation can pick this up.
    rgs
    Ginny
    Last edited by Ginny2222; 08-05-2015 at 05:44 PM.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Can I automate this task using VBA, Excel ?

    Ginny, please make sure you use code tags.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    10-30-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Can I automate this task using VBA, Excel ?

    Sorry!!
    Thanks for the nudge :-)

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Can I automate this task using VBA, Excel ?

    Here's an example of the Excel to Outlook code Ginny was hinting at:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Can I automate this task using VBA, Excel ?

    My favorite, no references needed.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Can I automate this task using VBA, Excel ?

    Late Binding is great for when you've got a pretty good handle on your code, but I'd recommend using Early Binding for anyone still piecing their way through it.

    The IntelliSense is invaluable for automatically providing a list of properties and methods, whereas working strictly with objects has more of a universal fit.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need to automate find/copy task
    By Matt26 in forum Excel General
    Replies: 7
    Last Post: 03-06-2014, 12:17 PM
  2. VBA code to automate simple task
    By itselflearn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2013, 12:11 PM
  3. Automate boring repetitive task
    By SpenceBasics in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-05-2012, 10:34 PM
  4. Excel Help - advice on how to automate this task
    By KingLeviathan in forum Excel General
    Replies: 2
    Last Post: 08-23-2010, 08:28 AM
  5. How to automate this task
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 07-13-2006, 07:45 PM
  6. [SOLVED] macro for excel, automate task
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2006, 10:45 AM
  7. VB Script to automate Excel does not run as Sheduled Task
    By dan artuso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2006, 03:45 PM
  8. can i automate task reminders in excel
    By shootist55 in forum Excel General
    Replies: 0
    Last Post: 05-02-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1