ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Send button in Excel (https://www.excelbanter.com/excel-programming/342384-send-button-excel.html)

George

Send button in Excel
 
I want to make a form with in it a button to send that form to a pre-choossen
mail address

Can someone help me?

Regards
George



Tom Ogilvy

Send button in Excel
 
when you say form, do you mean using a worksheet to simulate a paper form?
or are you talking about a Userform that you create in the VBE?

for a worksheet

activesheet.copy
Activeworkbook.Sendmail ", Subject:="Report for
" & format(date,"mm/dd/yyyy")
Activeworkbook.Close Savechanges:=False



--
Regards,
Tom Ogilvy

"George" wrote in message
...
I want to make a form with in it a button to send that form to a

pre-choossen
mail address

Can someone help me?

Regards
George





George

Send button in Excel
 
Thanks Tom,

i will try it.

To be more explicit about my question, I have a form in Excel which a team
needs to fill in and then send by mail. One time to one mail address the
second time to another mail address, same form but different content.

Now they have to go to send it by too many steps, if there is a button which
say send to mal 1 or send to mail 2 it makes it a lot easier to have these
persons use this form.

Thanks again.



"Tom Ogilvy" wrote:

when you say form, do you mean using a worksheet to simulate a paper form?
or are you talking about a Userform that you create in the VBE?

for a worksheet

activesheet.copy
Activeworkbook.Sendmail ", Subject:="Report for
" & format(date,"mm/dd/yyyy")
Activeworkbook.Close Savechanges:=False



--
Regards,
Tom Ogilvy

"George" wrote in message
...
I want to make a form with in it a button to send that form to a

pre-choossen
mail address

Can someone help me?

Regards
George






Kevin Porter

Send button in Excel
 
I had trouble getting the code to work until I made Recipient plural. So it
should look like this:

activesheet.copy
Activeworkbook.Sendmail ", Subject:="Report for
" & format(date,"mm/dd/yyyy")
Activeworkbook.Close Savechanges:=False

Other than that it works wonderfully.


"Tom Ogilvy" wrote:

when you say form, do you mean using a worksheet to simulate a paper form?
or are you talking about a Userform that you create in the VBE?

for a worksheet

activesheet.copy
Activeworkbook.Sendmail ", Subject:="Report for
" & format(date,"mm/dd/yyyy")
Activeworkbook.Close Savechanges:=False



--
Regards,
Tom Ogilvy

"George" wrote in message
...
I want to make a form with in it a button to send that form to a

pre-choossen
mail address

Can someone help me?

Regards
George







All times are GMT +1. The time now is 04:53 AM.

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