JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,907
- Office Version
- 365
- Platform
- Windows
Hi,
Have the following code which works fine but I think it can be reduced by placing into a nested loop, but I'm not sure how to make sure the string variables are built up properly:
Can this be nested?
Jack
Have the following code which works fine but I think it can be reduced by placing into a nested loop, but I'm not sure how to make sure the string variables are built up properly:
Code:
e = Range("EmailList").Row + 1
Do
Email_List = Email_List & Cells(e, c) & "; "
e = e + 1
Loop Until IsEmpty(Cells(e, c))
e = Range("EmailList").Row + 1
Do
Email_CC = Email_CC & Cells(e, c + 1) & "; "
e = e + 1
Loop Until IsEmpty(Cells(e, c + 1))
e = Range("EmailList").Row + 1
Do
Email_BCC = Email_BCC & Cells(e, c + 2) & "; "
e = e + 1
Loop Until IsEmpty(Cells(e, c + 2))
Jack