Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

VBA REFERENCE FORMULA EXCEL

Hi,

I have some code that sends off an email to lotus notes where put a mail box into

MailDoc.Principal = "eu.spm@abc.com"

Instead of this being hardcoded like above, can I reference cell R5 in excel instead

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Wilder1626
Wilder1626
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or if you want to specify the sheet name:
Ex:
MailDoc.Principal = Sheets("Sheet1").Range("R5").Value

Open in new window

Avatar of Seamus2626

ASKER

Thanks lads!