+ Reply to Thread
Results 1 to 3 of 3

Emailing with User Form Contents

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    Liverpool
    MS-Off Ver
    Office 365
    Posts
    84

    Emailing with User Form Contents

    Hi.

    I have a macro that sends an email with an attachment using details in a spreadsheet.

    It would be a great help if users were able to enter text into a User Form as part of the macro and have this populate the body of the email.

    Everything else is working fine, but I am struggling with this part. Does anyone have any ideas?

    Thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Emailing with User Form Contents

    Would it be best to have the email code in the userform? You can still use the worksheet references as well as the userform controls.

    Here is a generic email code.
    Create a userform with a button and textbox, fill in B1,B2,B3,b4 on the sheet.

    Add this code to the command button.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    Liverpool
    MS-Off Ver
    Office 365
    Posts
    84

    Re: Emailing with User Form Contents

    Thanks davesexcel, this has worked perfectly.

+ 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. [SOLVED] Auto generated input text boxes on specialised user form (Enter Table of Contents)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-18-2019, 09:57 PM
  2. [SOLVED] Help Emailing an active sheet contents
    By awhittkle23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2016, 10:13 AM
  3. Contents of an Array Derived from a macro into a Fixed Display Window, ( User Form ??? )
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-05-2015, 08:56 AM
  4. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  5. User form with listbox that will list the contents of a folder
    By ct56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2010, 11:53 AM
  6. [SOLVED] Printing the contents of a text control on a user form
    By Chaplain Doug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 03:35 PM
  7. [SOLVED] Assigning cell contents to a textbox in a User Form
    By Jack Gillis in forum Excel General
    Replies: 2
    Last Post: 06-08-2005, 11:05 AM

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