ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Email form with pop up box function (https://www.excelbanter.com/excel-programming/357184-email-form-pop-up-box-function.html)

Todd

Email form with pop up box function
 
I would like to email a document as an attachment but give the user the
ability to enter in a number that the email will be sent to. Our MS exchange
users are categorized by numbers. For example once the user has completed the
form I would like them to be able to press a button, a pop up box appear
where they enter the numbers then press OK and the email will be sent to that
user with the attachment. Thanks for any info!

Tom Ogilvy

Email form with pop up box function
 
ans = InputBox("Enter number of user")

Then feed that to the vba command that is working with a hard coded number,
substituting this variable

Activeworkbook.Sendfile Recipient:=ans, Subject:="ABC"

as an example.

--
Regards,
Tom Ogilvy

"Todd" wrote in message
...
I would like to email a document as an attachment but give the user the
ability to enter in a number that the email will be sent to. Our MS

exchange
users are categorized by numbers. For example once the user has completed

the
form I would like them to be able to press a button, a pop up box appear
where they enter the numbers then press OK and the email will be sent to

that
user with the attachment. Thanks for any info!




Todd

Email form with pop up box function
 
When I use the code I get a runtime 438 error; object doesn't support this
property or method. Any ideas?

"Tom Ogilvy" wrote:

ans = InputBox("Enter number of user")

Then feed that to the vba command that is working with a hard coded number,
substituting this variable

Activeworkbook.Sendfile Recipient:=ans, Subject:="ABC"

as an example.

--
Regards,
Tom Ogilvy

"Todd" wrote in message
...
I would like to email a document as an attachment but give the user the
ability to enter in a number that the email will be sent to. Our MS

exchange
users are categorized by numbers. For example once the user has completed

the
form I would like them to be able to press a button, a pop up box appear
where they enter the numbers then press OK and the email will be sent to

that
user with the attachment. Thanks for any info!






All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com