Running VBA code from Access database recordset

cellulargnome

New Member
Joined
Mar 30, 2017
Messages
15
I'm running a project right now that has grown beyond what it was ever intended too.

This is an Excel VBA application used within a single dept. Every user should be opening the file from a single location and always be running the latest version, this however isn't happening.

What I'm looking at doing is storing my subs in an access database (no access to SQL server), this way I can update the sub in the database and everytime it's run it's the sub I intended the user to run.

Let say for instance form frmFormName on form load grabs the code required from Access database, stores it whilst the form is used then closes database connection. This way no matter how many changes I make to the code the end user is always running the latest version and not some old version they stored on their desktop.

Can this be done? If so any pointers as to how I could achieve this would be awesome.

Many thanks
CG
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
To do this you would need to allow programmatic access to the VBA project and that could cause security issues.

Why not instead create an add-in that holds all the code for this project?

This could be stored at a central location where it could easily be updated when needed.
 
Upvote 0
Issue I think with an add-in, I can easily install it on all required boxes. If I do that can it be remotely updated without the weeks of testing by the IT dept?

I'm not sure programmatic access to the vba project is a real issue as internet access is severely restricted to end users. USB has physical locks to prevent switch blade or bad USB or USB rubby ducky hid type attacks.
 
Upvote 0

Forum statistics

Threads
1,223,701
Messages
6,173,920
Members
452,539
Latest member
deeme

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