Hi
I am trying to re-use VBA project code that I have now successfully created to implement a common data entry/validation environment for all workbooks. I have attempted to use the following approach to importing the module and user form files ino the current workbook from the common 'master' source files on the 'D' drive.
Workbooks.Add.vbProject.vbComponents.Import ("D\BOLRS\frmUserDataEntry.frm")
- this having failed I did not try to import the module code!
I put the code is put into the 'workbook Open' event and the following error message appears when the workbook loads: Runtime Error 1004 - "Programmatic access to vbProject is not trusted. Excel 2002 used.
Am I using the correct approach to do this?
Please advise / help
Best regards - hafod
I am trying to re-use VBA project code that I have now successfully created to implement a common data entry/validation environment for all workbooks. I have attempted to use the following approach to importing the module and user form files ino the current workbook from the common 'master' source files on the 'D' drive.
Workbooks.Add.vbProject.vbComponents.Import ("D\BOLRS\frmUserDataEntry.frm")
- this having failed I did not try to import the module code!
I put the code is put into the 'workbook Open' event and the following error message appears when the workbook loads: Runtime Error 1004 - "Programmatic access to vbProject is not trusted. Excel 2002 used.
Am I using the correct approach to do this?
Please advise / help
Best regards - hafod