+ Reply to Thread
Results 1 to 3 of 3

Data to Jpg To Email Copy Error

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Data to Jpg To Email Copy Error

    The attached workbook was working fine according to requirements in this thread:

    HTML Code: 

    A new problem has surfaced that for the life of me I cannot figure out. The data for the first invoice is being copied along with the first line of the second invoice for some reason (see Worksheet 2 for what the problem looks like). All other invoices are correctly copied.

    Any advise or help is appreciated.

    Thank you in advance,

    BigDawg15

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Data to Jpg To Email Copy Error

    trying changing the following

    in the If i =1
    change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    breaking down the first line
    Offset((Range("D1").End(xlDown).Row), 1) = offset(16,1)
    so
    d1.offset(16,1) = 1 + 16 = 17, offset to the right and xlup = 16

    therefore imgRNG = A1:E16
    Last edited by humdingaling; 11-27-2014 at 09:01 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Data to Jpg To Email Copy Error

    humdingaling,

    Looks like your suggested solution corrected the problem.
    Thank you very much.

    Cheers,

    BigDawg15

+ 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. Copy data and Send Email
    By sharma4845 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 04:22 AM
  2. Copy Sheet and attach to email only if there is data in VB
    By Rock_boy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-02-2013, 08:16 PM
  3. [SOLVED] email and copy data to another sheet in matching row
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-19-2013, 04:49 PM
  4. copy data into body of email without using outlook
    By vitt4300 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2012, 11:08 AM
  5. Email Excel Function but data won't copy to other workbook?? Please help!!!
    By netcbc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2011, 09:35 AM

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