Results 1 to 2 of 2

Thread: vba help!!Automatic sender in excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    2

    vba help!!Automatic sender in excel

    Hello,


    can any one help me!
    my problem is that i need to sent a mail after every hour with a same text but the time is different for the next mail..
    the following is the sample body that may help you to write the code:

    from:[email protected]
    to: [email protected](it may be more)
    cc:[email protected](it may be more)
    subjectlease help!

    body of mail

    hi sir/madam

    dateresent date
    time:21:45:10 AM CST (this time must be in decreasing order when i sent the same mail after 1 hrs or more!!)

    text:


    here may be any text:



    thanks:
    my signature of outlook
    ----------------end of mail-----------
    what i want that after every hour excel will gave me popup as a reminder that its time to send the mail and when i press the send or OK button it past all information in the outlook message send window.but the time in the time field must be in decreasing order for example
    1 mail has a time:21:45:10 PM CST
    2 mail has a time:20:40:55 PM CST
    3 mail has a time:19:32:12 PM CST

    so if any one can help then please help!!


    thanks

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: vba help!!Automatic sender in excel

    the following is the sample body that may help you to write the code:
    we can help you to write your own code, not do all for you

    check out the tutorial for automating office applications (including outlook) in the faq thread at the top of this forum

    you can use application.ontime in excel to schedule the next mail each time
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width