medic
07-08-2020, 02:59 PM
I’ve been having fun with a macro that a programmer in our paramedic service created in VBA in Excel but there’s one area that I’m coming up empty after a lot of internet searching for code. The programmer is off on paternity leave and is unavailable to consult with.
My question is, how can I add ActiveCell.Offset(0, -28).Value & ActiveCell.Offset(0, -27).Value that I currently have in strCc= & strBcc= (they work) beside ActiveCell.Offset(0, -29).Value in strTo= so that all 3 medics are direct recipients of the e-mail? I couldn’t find a way to code the 3 of them together. This is what I have:
'Build email message
strTo = ActiveCell.Offset(0, -29).Value
strCc = ActiveCell.Offset(0, -28).Value
strBcc = ActiveCell.Offset(0, -27).Value
strSub = "Referral Update - "
strCrew1 = ActiveCell.Offset(0, -29).Value
strCrew2 = ActiveCell.Offset(0, -28).Value
strCrew3 = ActiveCell.Offset(0, -27).Value
Thanks for any help anyone can offer.
My question is, how can I add ActiveCell.Offset(0, -28).Value & ActiveCell.Offset(0, -27).Value that I currently have in strCc= & strBcc= (they work) beside ActiveCell.Offset(0, -29).Value in strTo= so that all 3 medics are direct recipients of the e-mail? I couldn’t find a way to code the 3 of them together. This is what I have:
'Build email message
strTo = ActiveCell.Offset(0, -29).Value
strCc = ActiveCell.Offset(0, -28).Value
strBcc = ActiveCell.Offset(0, -27).Value
strSub = "Referral Update - "
strCrew1 = ActiveCell.Offset(0, -29).Value
strCrew2 = ActiveCell.Offset(0, -28).Value
strCrew3 = ActiveCell.Offset(0, -27).Value
Thanks for any help anyone can offer.