Results 1 to 2 of 2

VBA code to send information and compose a new email

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-07-2014
    Posts
    218

    VBA code to send information and compose a new email

    Hello there, in the attached file I have a worksheet with 2 textboxes and a command button. I want to be able to enter text in each text box and when I click the command button, I want it to open a new Gmail email (compose) in the Chrome browser and in the body of the email I want the information from the 2 textboxes to be pasted/shown there.

    Most of the tutorials I am seeing refer to using Microsoft CDO for Windows 2000 Library and are for sending emails from Excel. I don't want the email to be sent and I just want it to be in 'compose mode' so I can add further information to the email if needed and then select my recipient and send the email.

    When creating the code, assume the user is already logged into their Gmail account, therefore please don't suggest a code where the user's gmail address and password need to be entered in the vba code.

    Can you please help to create the VBA code for the 'Send to Gmail' command button?

    Also, Outlook is not an option. Therefore please code for Gmail.

    Thanks!
    Attached Files Attached Files
    If you have received help from a user, please feel free to Rep that person.
    Also, do remember to click Thread Tools and mark your thread as solved, if you have achieved a solution to your thread.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Send a email taking information from a combobox in a userform
    By Chavanx1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2020, 02:03 PM
  2. Collate information, send in email
    By marcosis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2020, 06:59 AM
  3. Code to send email with table on the email body via gmail
    By ivhee00 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2017, 12:24 AM
  4. VBA code to send email to the people whose email address is in the Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2014, 05:11 AM
  5. Replies: 2
    Last Post: 09-19-2013, 12:49 AM
  6. Code to send Email wont send everytime
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2011, 04:44 PM
  7. how do i can send a information of cell automaticaly via email?
    By Rajani in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-08-2006, 06:10 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