+ Reply to Thread
Results 1 to 21 of 21

Use data from a UserForm to send email

Hybrid View

tanktata Use data from a UserForm to... 06-06-2011, 06:18 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 12:08 PM
tanktata Re: Use data from a UserForm... 06-07-2011, 01:28 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 01:51 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 02:44 PM
tanktata Re: Use data from a UserForm... 06-07-2011, 02:46 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 02:59 PM
tanktata Re: Use data from a UserForm... 06-07-2011, 03:30 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 03:38 PM
tanktata Re: Use data from a UserForm... 06-07-2011, 04:05 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 04:19 PM
tanktata Re: Use data from a UserForm... 06-07-2011, 04:47 PM
jaslake Re: Use data from a UserForm... 06-07-2011, 04:51 PM
tanktata Re: Use data from a UserForm... 06-09-2011, 04:18 PM
jaslake Re: Use data from a UserForm... 06-09-2011, 11:01 PM
tanktata Re: Use data from a UserForm... 06-10-2011, 04:07 PM
jaslake Re: Use data from a UserForm... 06-10-2011, 04:27 PM
tanktata Re: Use data from a UserForm... 06-11-2011, 02:00 PM
jaslake Re: Use data from a UserForm... 06-11-2011, 02:13 PM
tanktata Re: Use data from a UserForm... 06-11-2011, 02:45 PM
jaslake Re: Use data from a UserForm... 06-11-2011, 03:11 PM
  1. #1
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Use data from a UserForm to send email

    Thanks once again Jaslake. I managed to get it working myself, not quite as efficiently as your code tho, so I think I will use yours

    Is it possible to send the email without the user having to press send in the email client?. It opens up outlook then seems to change to MS word to send the email, although I think it could be something to do with how I have my MS Office set up.

    One last thing, will this work ok in the 2003 version of excel? The people who will be using this only have that version.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Use data from a UserForm to send email

    Hi tanktata

    The code has been tested in both Excel 2000 and Excel 2007...so, I'd think it should work in Excel 2003. However, I don't have Excel 2003...so, you'll have to test it.

    To send the Email in Outlook without having to click "Send" change this code in Module 2
    With OutMail
            .To = "somebody@yadda.com"
            .CC = ""
            .BCC = ""
            .Subject = "Some Words  " & Range("A3").Value & " Somemore Words  " & Range("B3").Value
            .HTMLBody = RangetoHTML(rng)
           '        .Display  'Comment Out This Line
           .Send   'or use .Display 'Uncomment This Line
        End With
    Let me know of issues.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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