I've been working on a project for buyers to get data using a userform. If the data they want isn't there they can send a request to me via email to get the data entered.
In the sendmail sub I used
sUserName = Environ("UserName") & "@company.com"
and it worked while I was testing it locally. But when I put the file on the network and the buyer's try to send email it doesn't work. In fact, even though I've put
On Error Resume Next
A few lines above that call to Environ it still errors. Is there another way to get the user name on the remote machines? I don't want the user to have to do anything, well, except to accept the security prompts when I try to access their Outlook via VBA.
In the sendmail sub I used
sUserName = Environ("UserName") & "@company.com"
and it worked while I was testing it locally. But when I put the file on the network and the buyer's try to send email it doesn't work. In fact, even though I've put
On Error Resume Next
A few lines above that call to Environ it still errors. Is there another way to get the user name on the remote machines? I don't want the user to have to do anything, well, except to accept the security prompts when I try to access their Outlook via VBA.
