+ Reply to Thread
Results 1 to 4 of 4

E-mail last row of data in workbook

  1. #1
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    E-mail last row of data in workbook

    Hi Everyone,

    I found a nice script that using outlook, e-mails a specified range of cells. However I would like the script to e-mail the last filled row of cells. I have had a go at amending it myself my keep butting my head up against it one way or another. At the moment I get an compile error, type mismatch. I just can't work out how to get the two pieces of script to work together.
    Any help would be great!!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: E-mail last row of data in workbook

    set source = worksheets(strSheet).usedrange.row(worksheets(strSheet).usedrange.rows.count)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: E-mail last row of data in workbook

    Thank you very much for your reply. I don't want to be a noob but I can't get your suggestion to work for me. It keeps bringing up the error message written into the code. I have tried messing around with it, to no avail. I have attached my wb so anyone can have a closer look.
    Thank you in advance.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: E-mail last row of data in workbook

    This was solved in another thread I posted for the same issue.
    Here is the link to that post; http://www.excelforum.com/excel-prog...ml#post3528935

    And the code;
    Please Login or Register  to view this content.

+ 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. Mail variable number of sheets in workbook based on VLOOKUP mail address
    By Tino XXL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 08:44 AM
  2. E-Mail workbook
    By robertrichardson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2013, 05:46 AM
  3. How to e-mail selected row and use e-mail address in a cell to send e-mail from excel
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2010, 02:15 AM
  4. E-mail Workbook
    By flredhead in forum Excel General
    Replies: 3
    Last Post: 09-22-2008, 05:39 PM
  5. Copy four worksheets from one workbook into a new workbook.e-mail
    By Francis Brown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2005, 08:05 PM

Tags for this Thread

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