+ Reply to Thread
Results 1 to 9 of 9

AddItem and Clear Giving Errors when Run

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    AddItem and Clear Giving Errors when Run

    Hi All

    I am trying to use the AddItem to create a List from a named Range. But when I run the form I am getting Compile Error: Method or Data Member not Found.
    I have this code running successfully in another spreadsheet fine.
    I am using excel 2010 and the spread was originally setup in Excel 2003

    Please Login or Register  to view this content.
    Any help thanks

    Tony

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: AddItem and Clear Giving Errors when Run

    Tony

    Where do you get the error?

    Have you tried using List?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: AddItem and Clear Giving Errors when Run

    The Error comes as soon as I run the form and it highlights the .AddItem when I goto debug the macro. It also fails on .Clear as well.
    I have tried using list as well with similar error.

    Thanks
    Tony

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: AddItem and Clear Giving Errors when Run

    Tony

    Do you get the same error with both comboboxes?

  5. #5
    Registered User
    Join Date
    09-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: AddItem and Clear Giving Errors when Run

    Hi Norie

    Yes it gives me the same error on both.
    It appears that it is unable to find the additem, Clear and even the List functions.
    Is there something within excel I need to turn on to get these to work.

    Thanks

    Tony

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: AddItem and Clear Giving Errors when Run

    Tony

    Can you attach the workbook?

    Remove any sensitive data.

  7. #7
    Registered User
    Join Date
    09-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: AddItem and Clear Giving Errors when Run

    Hi Norie

    I have attached the full workbook.

    Thanks

    Tony
    Attached Files Attached Files

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: AddItem and Clear Giving Errors when Run

    Tony

    Day and Prize_List are textboxes, not comboboxes.

    I deleted the textboxes and replaced them with comboboxes of the same name.
    Please Login or Register  to view this content.
    Last edited by Norie; 02-14-2013 at 12:49 AM.

  9. #9
    Registered User
    Join Date
    09-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: AddItem and Clear Giving Errors when Run

    Now i feel like a real dil

    Thanks very Much

+ 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