Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Workspace faux user-defined type not defined

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?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Workspace faux user-defined type not defined


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 :

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Workspace faux user-defined type not defined

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.



"keepITcool" wrote:


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 :

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?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workspace faux user-defined type not defined

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.

--
Regards,
Tom Ogilvy

"Chris S" wrote in message
...
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?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Message "user defined type not defined" LEELK01 Excel Discussion (Misc queries) 2 August 14th 09 07:31 AM
"User-defined type not defined" message in Excel RW1946 Excel Discussion (Misc queries) 0 August 31st 05 12:14 PM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM
User Defined type not defined Karpagam Excel Programming 1 May 16th 04 05:41 PM
Word.Document - user defined type not defined jowatkins[_7_] Excel Programming 0 January 20th 04 08:46 AM


All times are GMT +1. The time now is 09:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"