Hi Guys,
I have a VBA macro that sends an e-mail.
I'm now trying to get it to lookup the e-mail address.
For testing I was using
Const stTo As String ="E-mail"
Call oUIDoc.FieldSetText("EnterSendTo", stTo)
I'm happy with this, and this works, But now I want to look up the e-mail address, using a second excel document as my contacts list, based on the account number.
I've tried playing around with
Const stTo As Range = Activesheet.Range (H25)
Call oUIDoc.FieldSetText("EnterSendTo", stTo)
and a couple of others. I'll be honest, I was fishing hoping it would work.
Cell H25 has a Vlookup and so contains the contact I want it to use in the string.
Can anyone help??
Bookmarks