Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50123

Send email based on address in a cell

$
0
0
My code basicly sends a copy of the excel file to a specified email, thw code works but i wish to make one change.

Code:

.to = "example@hotmail.com"
The line above states the email the file should be sent to. How can i change this so it sends it to the value written in cell x1. for example if in cell x1 the value is random@hotmail.com, this should be equivelent to
Code:

.to = "random@hotmail.com"

Viewing all articles
Browse latest Browse all 50123

Trending Articles