Excel 2000 VBA Code not working in Excel 2002

O

OldGuy

Underlying VBA code will not compile due to Excel 2002's
failure to recognize a function/variable. This error
occurs for any variables not explicitly declared at the
beginning of a Sub/Function and for built in functions such
as Str, Chr, and Format. This occurs even though Excel
2002 is configured to not require explicit typing of variables.

The original workbook was created on a system running XP
Pro 2002 SP-1 and Office 2000, 9.0.3821, SP-1 and runs fine
on that machine. This issue occurs when the offending
workbook is opened in Office 2002 SP-2 on a system running
XP Pro. 2002 SP-1.

Any advice/help is much appreciated.
 
N

NickHK

OldGuy,
Most of the time when such built-in function do work, it is because the
references have been unchecked or corrupted.
Go to Tools>References and see if are marked "Missing". If so locate the
correct libraries and save again.

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top