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
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,362
Office Version
365
Platform
Windows
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.
 

cellulargnome

New Member
Joined
Mar 30, 2017
Messages
15
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.
 

Forum statistics

Threads
1,082,305
Messages
5,364,400
Members
400,800
Latest member
germanpbv

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top