MSAccessRookie
AWF VIP
- Local time
- Yesterday, 20:53
- Joined
- May 2, 2008
- Messages
- 3,428
One of the requirements of the project that I am presently working on (MS Office 2003 Format), is to write VB Code to validate the contents of Excel Cells as they are being filled in. To fulfill this requirement, the contents of an MS Access Table are imported into a Worksheet and then used as a filter in a dropdown menu.
- Problem #1
While the Dropdown Menu works as expected (with limited issues that still need to be dealt with), It turns out that when the MS Access Database Table is updated, the data in the Excel Worksheet does not get refreshed unless we do it manually.
I tried to use the Excel Settings for Auto Refresh (Data->Import External Data-->Data Range Properties-->Refresh Data on File Open), but this created a warning message each time that the Spreadsheet was opened that was not acceptable to the users.
I tried to use the Excel Settings for Auto Refresh (Data->Import External Data-->Data Range Properties-->Refresh Data on File Open), but this created a warning message each time that the Spreadsheet was opened that was not acceptable to the users.
- Problem #2
The purpose of the Excel Spreadsheet is to contain the Formulas for creating the products that the company sells. Production Users will enter information such as Compound Names, Lot Numbers, and amounts (weights) of each compound that is to be used. The Spreadsheet has the appropriate formulas to do the proper checking, and the new VB Code will verify that the Lot Number contains the appropriate compound.
The same VB Code is able to work for all of the Spreadsheets, since they all have the same relative structure (each row is formatted the same way, although not all of the Spreadsheets have the same number of rows). This will result in numerous Spreadsheets that all contain the same VB Code (over 20 so far, and over 500 expected by the end of the project).
Is there any way for all of the Spreadsheets to share the VB Code?
The same VB Code is able to work for all of the Spreadsheets, since they all have the same relative structure (each row is formatted the same way, although not all of the Spreadsheets have the same number of rows). This will result in numerous Spreadsheets that all contain the same VB Code (over 20 so far, and over 500 expected by the end of the project).
Is there any way for all of the Spreadsheets to share the VB Code?