Take a query, export it to excel with a password and email it...with one button click lol

IH8XEL

New Member
Joined
Jun 26, 2015
Messages
10
Ok Access Gurus,
I have a form. In this form I have a button that runs a parameter query with an "On Click" embedded macro. I figured out a way to send it to email with an excel output file as the second action. But I need the excel file to be password protected. The password can be the same exact password every time. I can't figure out a way to do all 3 things (run the query, password, and email) with one click of the button. Please help!!!

:(
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I'd be surprised if you could do this from Access without using automation, which is well above the power of a macro AFAIK. Take a look here or search for something like

ms access password protect excel file automation
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,248
Members
451,756
Latest member
tommyw

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