Macro for Control Button to excel file or Outlook

Koggala

New Member
Joined
Jul 4, 2003
Messages
39
I am a complete Access novice, creating my first DB. I want to set up a control button on a form to open a particular excel file. I have looked through help and my physics degree does not help.

Also i want to create an email button that opens a new email in outlook with the email address already written in the to field.

How do i do it? I warn you now, i do not know VB at all. :pray:
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Your easist option for excel is to use a hyperlink in a lable rather than a button.
Create a lable and add the text to it that you want to show on the form, then click the build button ... againt the "hyperlink Address" field in the lables properties and use the dialog box to navigate to your file.

For the email button you use the "SendObject" method of Docmd. Look it up in help for the various arguments for it.

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,579
Messages
6,160,615
Members
451,658
Latest member
NghiVmexgdhh

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
Back
Top