I get the error "Can't find project or library" when I try to compile this program. It highlights the variable Error$
Error is a method defined in the VBA library. Open Project->reference and be sure that VBA is checked.
"There are two ways to write error-free programs. Only the third one works."
Also, make certain they are no libraries listed as missing in the References dialog. If there are then uncheck them.
Microsoft MVP (Visual Basic)
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center