Remove missing references VBA

jdawg_1989

New Member
Joined
Jun 24, 2011
Messages
27
Evening All,

I have a spreadsheet that gets distributed to my clients. They use the spreadsheet as a form to fill in various details.

On the spreadsheet I have a tab that my admin team use where there VBA code that creates records in an MS Access database based on information provided on form.

The problem I have is this, after my clients fill out the form they click a macro which attaches the spreadsheet to an email and sends it.

But......it falls over if the client does not have access on their machine as the VBA code that my admin team uses, uses the Access Reference Library in VBA.

How can I get around this? I'm thinking to have an error clause that can somehow remove the access reference if error?

Any thoughts please?

Thanks.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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