+ Reply to Thread
Results 1 to 5 of 5

Basic code to open new email in outlook

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-30-2014
    Location
    Mosman, Australia
    MS-Off Ver
    2013
    Posts
    118

    Basic code to open new email in outlook

    Hi there,

    I have a command button in place, where when someone clicks it I want it to open up a new email using outlook. I want the most basic macro for it so I might be able to edit it later. Does anyone know what the macro code should be?

    Thanks

  2. #2
    Registered User
    Join Date
    07-07-2015
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    20

    Re: Basic code to open new email in outlook

    Hi,

    Sub Macro1()
    Shell ("OUTLOOK")
    End Sub

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: Basic code to open new email in outlook

    hi den, i think his referring to create a open new e-email message, and i too was looking for it. thanks

  4. #4
    Registered User
    Join Date
    07-15-2015
    Location
    South East England
    MS-Off Ver
    2010 & 2013
    Posts
    72

    Re: Basic code to open new email in outlook

    Sub Create_Open()
    'Creates a new e-mail item and modifies its properties'
    
        Dim olApp As Outlook.Application
        Dim objMail As Outlook.MailItem
        Set olApp = Outlook.Application
        'Create e-mail item'
        Set objMail = olApp.CreateItem(olMailItem)
    
        With objMail
            '.Subject = "Subject"
            '.Body = ""
            '.Recipients.Add "abd@def.com"
            .Display
        End With
        'objMail.Send
        
    End Sub
    I have commented out some elements, but thought that they may be of use

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: Basic code to open new email in outlook

    this is a great help, what f you a template in excel and the email adress is in excel how can i reference a cell for recipient and subject? also the emai body
    thanks n advance
    Last edited by ash3angel; 07-21-2015 at 12:43 AM.

+ 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] Convert Excel Sheet to PDF and open outlook email
    By chaysp81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-01-2014, 10:00 AM
  2. [SOLVED] Append message to open Outlook email
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2014, 08:39 AM
  3. Macro to open outlook Email with conditions.
    By arun.sj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 06:16 AM
  4. Hyperlink to Open Outlook Email
    By Nanimadhu in forum Excel General
    Replies: 1
    Last Post: 06-29-2014, 04:32 PM
  5. [SOLVED] VBA code - automatically open outlook to send email
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:44 AM
  6. Open an attachment from an email in Outlook
    By TypicalDru in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2012, 12:34 PM
  7. Open Outlook and send email
    By linsonline in forum Excel General
    Replies: 2
    Last Post: 05-06-2011, 09:29 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