
Deleting a Sub or Function from a Module via Code
Hi Joe,
You can by using the Module Object. Access help has some good information on
this.
Using the module object you can read, edit and save changes in code.
However, I would not recommend this in a production application. Too many
things could go wrong and you could end up with unusable code.
Cheers,
Calum Reay
Paradox Contracting Ltd
http://www.pcltd.co.uk
Quote:
> Is it possible to delete a sub-routine or function from a module using
VBA.
> I have a project that would require me to "redo" a sub or function on the
> fly so I would need to delete the original sub or function and then
replace
> it with the new one. Thanks,
> Joe