That means you have Option Explicit declared in the error producing machine but an undeclared variable being present...
Most likely anyway...
well, if it works one place, but not the other...
You need to check Tools>References in the VB window and see if any are prefixed with MISSING:
Uncheck that one and you should be okay..