+ Reply to Thread
Results 1 to 3 of 3

Find last cell in column, add it to a specific cell and ...create e-mail

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Find last cell in column, add it to a specific cell and ...create e-mail

    Hello,

    I'm facing with an issue, it's an issue because I have no idea how can be done...
    I save the Sheet2 as .cvs and then I create an e-mail. This is ok!
    Before to save it as .csv, I need to find the last cell with value in column J (did it with a formula) and place it near to the text of J2. I mean cell J2 has "Record Nmbrs" text and add the value from the last cell.
    I tried some workarounds, I thought that I fixed it but the content of e-mail ....has 3 or 4 commas after each row (i.e Record Nmbrs 5,,,) which is not ok!
    Can you help me, please?

    Thank you
    Regards, George
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Find last cell in column, add it to a specific cell and ...create e-mail

    Saving a .csv will save all columns in the sheet, since 5 is in several columns over, the comma separator will include those blank cells.

    If you are just using .csv so you have something to paste onto the outlook email, you can paste the specific range in excel.

    Check it out.

    Please Login or Register  to view this content.
    Once you have formatted your cells it will end up like this:
    ------------------------------------------------------------------------------

    2022-12-25_5-34-19.jpg

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Find last cell in column, add it to a specific cell and ...create e-mail

    Hi Dave,
    Thanks a lot for your support!
    It doesn't help me, I need to have it in notepad format because I sent it to an MQ and this is the exact format it ingests... I've just tried not to type manually the last value from column J into email body in J2...
    Again, thank you very much.

+ 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. [SOLVED] code find last cell in a specific column in specific worksheet and paste value
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2017, 10:38 AM
  2. Create macro that will run if any cell in specific column is filled
    By andikasahab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2016, 03:46 AM
  3. Replies: 6
    Last Post: 10-20-2015, 12:51 AM
  4. Find the next blank cell in a row from a specific value in a column
    By Abbadon486 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 05:51 AM
  5. Find cell in specific column that contains highest value
    By brucey2343 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-31-2013, 08:27 AM
  6. Replies: 4
    Last Post: 05-26-2013, 05:54 PM
  7. [SOLVED] Macro to find specific text in a cell and then create multiple rows above
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-21-2012, 09:52 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