+ Reply to Thread
Results 1 to 5 of 5

User Defined type not defined error

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    A far away land
    MS-Off Ver
    Excel 2003
    Posts
    38

    Angry User Defined type not defined error

    I keep getting a VBA error of "User defined type not defined. It shows up when a value is entered in the B column and a directional key is used to select a different cell. If a value is entered and the mouse is used to select a different cell it doesnt seem to error out. There are only two code modules that I have looked through but I cant find anything wrong with them. The modules are to print certain ranges and should not have any bearing on the value of the B column. Any help on a fix is greatly appriciated!

    Thanks

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: User Defined type not defined error

    Hi Rodeoclown,
    Have you read the definition in the vba help files?
    could be error in module
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: User Defined type not defined error

    Hello RodeoClown,

    I get that message more often than I would like because I am a bad typist. When I get this error it usually because I have misspelled a Data Type (Integer, Long, Variant, etc.) in a Dim statement or after a Set statement.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    01-24-2011
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: User Defined type not defined error

    Hi Rodeoclown, I've been getting the same problem. I have a number of routines that run without errors and finish with no warning messages. However, once the code has been ran, I get the "User Defined Type Not Defined' error when I try to change the contents of any cells.

    I have no idea what's going on. I've scoured the internet. Have you found a solution?

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: User Defined type not defined error

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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