Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Shinka
 
Posts: n/a
Default Add email attachment to command button

I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Shinka

See
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)



  #3   Report Post  
Shinka
 
Posts: n/a
Default

Very helpful, Thanks. I can use them if I attach it as a macro to a
'button'. Get errors if trying to insert it in a 'command button' between:

Private Sub CommandButton1_Click()

End Sub

What is the proper way to insert it?

"Ron de Bruin" wrote:

Hi Shinka

See
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)




  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Shinka

Enter only the macro name in the click event and copy the macro in a normal module

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
Very helpful, Thanks. I can use them if I attach it as a macro to a
'button'. Get errors if trying to insert it in a 'command button' between:

Private Sub CommandButton1_Click()

End Sub

What is the proper way to insert it?

"Ron de Bruin" wrote:

Hi Shinka

See
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)






  #5   Report Post  
Shinka
 
Posts: n/a
Default

That was too simple...LOL
I tried making it a Private Sub, renaming the box to Mail, etc..
Your site is now in my favorites.
Thanks alot Ron

"Ron de Bruin" wrote:

Hi Shinka

Enter only the macro name in the click event and copy the macro in a normal module

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
Very helpful, Thanks. I can use them if I attach it as a macro to a
'button'. Get errors if trying to insert it in a 'command button' between:

Private Sub CommandButton1_Click()

End Sub

What is the proper way to insert it?

"Ron de Bruin" wrote:

Hi Shinka

See
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)








  #6   Report Post  
Ron de Bruin
 
Posts: n/a
Default

You are welcome


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
That was too simple...LOL
I tried making it a Private Sub, renaming the box to Mail, etc..
Your site is now in my favorites.
Thanks alot Ron

"Ron de Bruin" wrote:

Hi Shinka

Enter only the macro name in the click event and copy the macro in a normal module

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
Very helpful, Thanks. I can use them if I attach it as a macro to a
'button'. Get errors if trying to insert it in a 'command button' between:

Private Sub CommandButton1_Click()

End Sub

What is the proper way to insert it?

"Ron de Bruin" wrote:

Hi Shinka

See
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I put a command button on my spreadsheet and would like the code to email the
spreadsheet when clicked. Probably should save it too before mailing.

Thanks for you programming skills! :)








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formatted sheets get unformatted when send via email attachment? TJ Excel Worksheet Functions 1 August 10th 05 04:41 PM
Excel Spreadsheet email attachment unable to open in Outlook Expr. Joanne from Tiffin, Oh Excel Discussion (Misc queries) 1 April 23rd 05 12:21 AM
how do you open an email attachment that is an excel speadsheet w. arrow bb Excel Discussion (Misc queries) 1 March 3rd 05 02:53 PM
Email a single sheet as attachment ?? Matt Stone Excel Discussion (Misc queries) 1 February 18th 05 10:39 AM
email portion of spreadsheet as attachment Holly K Excel Discussion (Misc queries) 3 December 6th 04 09:37 PM


All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"