Workspace faux user-defined type not defined

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a user whose spreadsheet quit 'working'.
A button on the first worksheet executes a macro that uses several
declarations,
Dim ws As Workspace
Dim db As Database
Dim rs As Recordset

The Workspace, Database, and Recordset are all 'undefined.'
When I scan in the VBA Object Browser for 'Workspace' all I get is Excel and
VBA
DAO doesn't show up.

We have another workbook that IS working. This one shows DAO in the Object
Browser.

Questions:
How do I get the DAO module BACK into the workbook??
HOW did this user eliminate it in the first place??
HOW do I keep her from doing it again?
 
in the VBE, check references in the tools menu.
select where appropriate.
If Microsoft DAO version x is listed as ISMISSING
then try to start excel with /regserver on the commandline.







--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Chris S wrote :
 
Thanks a BUNCH! The References tab on the one that was working had
Microsoft DAO in it. I just added that ref to the bad one and it's all happy
now.
 
in the vbe go to tools=>References and see if you have a reference marked as
MISSING. If so, is it a reference to DAO? In any event, you need to
create a reference to DAO. It is possibly in a different location on this
machine.
 

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

Back
Top