How do I create a macro button?

Xander1

Board Regular
Joined
Nov 28, 2006
Messages
52
I need to create a macro button to send my excel workbook in an email. Please help!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Xander1

Board Regular
Joined
Nov 28, 2006
Messages
52
I've managed to get the button to appear, but I can't figure out how to tell it to email the workbook.
 
Upvote 0

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
What code are you using?
Did you try any of the examples in the link I posted? If so, please post the code?
What email application are you using?
 
Upvote 0

Xander1

Board Regular
Joined
Nov 28, 2006
Messages
52
I'm sorry, I've just never used macros before and I'm totally confused. I'm trying to send the email via Microsoft Outlook.
 
Upvote 0

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
What's your e-mail client? If it's Outlook see: www.rondebruin.nl/sendmail

As for the button you can draw one from the Forms toolbar and assign a macro to it.

HTH,

Smitty

EDIT: Sorry John, I stepped into a meeting before posting and didn't see that you got it handled... :oops:
 
Upvote 0

Forum statistics

Threads
1,191,165
Messages
5,985,034
Members
439,935
Latest member
Monty238

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top