+ Reply to Thread
Results 1 to 5 of 5

Compile error: user defined type not defined

  1. #1
    Registered User
    Join Date
    11-22-2014
    Location
    Brisbane
    MS-Off Ver
    2011 for mac
    Posts
    13

    Compile error: user defined type not defined

    I receive the above message when trying to use the below code. My aim is to have the cell count a specified number shown in "count" and only count if the value in the workout# cell is >89%.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,297

    Re: Compile error: user defined type not defined

    I think you'd need something like this:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,297

    Re: Compile error: user defined type not defined

    You do realise that function will only ever return 0 or 1, don't you?

    Regards, TMS

  4. #4
    Registered User
    Join Date
    11-22-2014
    Location
    Brisbane
    MS-Off Ver
    2011 for mac
    Posts
    13

    Re: Compile error: user defined type not defined

    Really? i want the function to sum, up to 5 cells, if they are over 89%. Any suggestions?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,297

    Re: Compile error: user defined type not defined

    You'd have to pass a range to the function, not separate cells or values.

    Please Login or Register  to view this content.

    Not really sure what you are trying to do. Are the cells in a column in a contiguous range? Or in a row in contiguous cells? Or random cells?

    I suggest that you post a sample workbook with some examples and expected outcomes.

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Compile error: User-defined type not defined
    By XmisterIS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2014, 09:46 AM
  2. Error message: "Compile error. User-defined type not defined"
    By freckles81 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-13-2012, 09:37 AM
  3. compile error - user defined type not defined
    By TMP123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2010, 01:42 PM
  4. VB Compile Error - User-defined type not defined
    By dbwiz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2010, 04:31 PM
  5. Error message: "Compile error. User-defined type not defined"
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2007, 06:38 PM

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