objoutlook

  1. N

    VBA to Generate Email

    Hello, I am getting he following error when trying to run this macro. Can someone help me correct it. "Compile error User-defined type not defined" The purpose of the vba is to email the latest file from a shared location Option Explicit Sub GenerateEmail() Dim objOutLook As Object...
  2. T

    Excel to Outlook Email Recipients and Formatting

    Greetings I have below code open Outlook from Excel, pull an email address to BCC field, subject and some contents. What changes are required to pull multiple emails from cells B12:B18, B21:22, B29, B32 and B35 to the BCC field? Also, is it possible to pull across a Richtext formatted email I...
  3. M

    Auto mail to take up email address from worsheet & send

    Hi! VBA to send auto mail by extracting mail address from worksheet, BUT Not able to extract address from the whole column. It works - but on single cell if I write Range ("A1"). Pls. suggest the correction to be done (I think it should be in - marked as Red) Option Explicit Private Sub...
  4. L

    Getting error as variable not defined for olMailItem in below VBA

    Can anyone gives a cue what's the error / how to get out of it. Option Explicit Private Sub CommandButton1_Click() On Error GoTo ErrHandler ' SET Outlook APPLICATION OBJECT. Dim objOutlook As Object Set objOutlook = CreateObject("Outlook.Application") ' CREATE EMAIL OBJECT. Dim objEmail As...
  5. M

    ERROR in VBA : variable not defined - olMailItem

    Pls. help I am getting error as variable not defined for olMailItem in below VBA Option Explicit Private Sub CommandButton1_Click() On Error GoTo ErrHandler ' SET Outlook APPLICATION OBJECT. Dim objOutlook As Object Set objOutlook = CreateObject("Outlook.Application")...
  6. T

    VBA to add multiple cells in the body of an email

    I am trying to add Cell E5 in the body of the email below E4. I am new using VBA. This is what I have so far. Sub CreateEmail() Dim objOutlook As Object Dim objMail As Object Dim rngTo As Range Dim rngSubject As Range Dim rngBody As Range Set objOutlook = CreateObject("Outlook.Application") Set...
  7. D

    VBA error when cell is empty

    Hi everyone A right newbie here so please take it easy on me! I've been using the below code to do a tailored mail merge with specific attachments to my recipients. There will be varied mailing, where some people will receive 1 attachment, and some with 3 for example. The problem that I have...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top