+ Reply to Thread
Results 1 to 3 of 3

Data-Definition Problem

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Data-Definition Problem

    Howdy:

    I have two spreadsheets, one has a routine that works and the other fails with "User-Defined type not defined". Here's the code that is identical in both spreadsheets:

    Please Login or Register  to view this content.
    On the spreadsheet that this statement fails, when I'm typing in the dim statement, I get a listing of appropriate selections for the "As" part of that statement. In the spreadsheet that works, "DataObject" is a selection (and, hence, why it works) but the other doesn't (hence, why it does not). How can it be different.

    Right now, just color me confused.

    Bob
    Last edited by bstubbs; 05-19-2011 at 06:32 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Data-Definition Problem

    You need to add a reference:

    VBEditor (Alt-F11)/menubar/Extra/references/Microsoft Forms 2.0 Object Library : check.



  3. #3
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Re: Data-Definition Problem

    Thanks a lot. I thought that it was something like that but couldn't come up with it.

    Bob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1