+ Reply to Thread
Results 1 to 4 of 4

Copy Range of cells and paste into email

  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):

    Please Login or Register  to view this content.

    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.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello shama,

    I wrote this macro a short time ago to do what your asking about. See the example below the code for the calling syntax. Any legal range syntax can be used in the macro.
    Please Login or Register  to view this content.
    Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    11-20-2008
    Location
    Canada
    Posts
    17
    Thanks Leith~

    I also found this bunch of code on the web (finally) that solved my issue.

    Thanks for helping me out~!

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    Riyadh
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copy Range of cells and paste into email

    Hi Leith, Shama and everyone.

    Would like to ask how Shama activates his codes? Do I need a button (ActiveX Button) and change a Sub line there?

    Thanks in advance.

+ Reply to Thread

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