Results 1 to 4 of 4

Copy Range of cells and paste into email

Threaded View

Shama Copy Range of cells and paste... 01-14-2009, 08:27 PM
Leith Ross Hello shama, I wrote this... 01-15-2009, 12:56 AM
Shama Thanks Leith~ I also found... 01-15-2009, 03:13 PM
vin2122 Re: Copy Range of cells and... 12-17-2012, 04:20 AM
  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    Canada
    Posts
    17

    Copy Range of cells and paste into email

    Hi:

    I have a table in excel that I would like to copy into an email and send to my co-workers on a regular basis.

    Somewhere on the net I have find a piece of code (I've omitted a bunch of stuff here):

    Set otlApp = CreateObject("Outlook.Application")
    Set otlNewMail = otlApp.CreateItem(olMailItem)
    
    With otlNewMail
    .To = "email@address.com"
    .CC = ""
    .Subject = “Subject”
    .Body = "Today's report"
    .Display
    end with

    I wanted to know what code to use in the Body so that I can paste range of cells (the table).
    Right now I get an "Array lower bound must be zero" error if I just put in the range.



    Many thanks,
    Shama
    Last edited by Shama; 01-15-2009 at 03:13 PM.

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