+ Reply to Thread
Results 1 to 2 of 2

Generate Email Body Text

  1. #1
    Registered User
    Join Date
    11-21-2009
    Location
    Rhyl, North Wales
    MS-Off Ver
    Excel 2003
    Posts
    39

    Generate Email Body Text

    Hi all, i have some code which creates and sends an email from excel but i'm having trouble generating the body text. i believe i need some sort of array but am unsure as i have no experiense with arrays.

    i would basically like to go through {K12:K50} and search for critera {<=0.1} .When found count incidents {Incident = incident + 1} and add the values from columns C,D,E,K on incident row to a newline of email body. So the email body test would look like ...

    Encountered Incidents = 5
    Incident 1 : ColC.Value , ColD.Value , ColE.Value , ColK.Value
    Incident 2 : ColC.Value , ColD.Value , ColE.Value , ColK.Value
    Incident 3 : ColC.Value , ColD.Value , ColE.Value , ColK.Value
    Incident 4 : ColC.Value , ColD.Value , ColE.Value , ColK.Value
    Incident 5 : ColC.Value , ColD.Value , ColE.Value , ColK.Value

    Any help would be greatly appreciated

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

    Re: Generate Email Body Text

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

+ 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