A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Judith,
When you open the database on the new PC there migh be the yellow bar with the button “Enable Content”.
If so, then click this button and close the database.
After that run your code from within Excel.
There is a chance the problem is gone.
Jan