+ Reply to Thread
Results 1 to 5 of 5

UserForm with Error Message

  1. #1
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Unhappy UserForm with Error Message

    I have a user form, that keeps giving me errors, run time '1004
    I am not sure why, it has been working fine for a few months, now its acting up. Any suggestions, I have read several threads, but I don't see the problem.
    Attached Files Attached Files
    Providing Problems for Your Solutions
    STARS are my Punching Bag, You will be rewarded.

    In the rare event that I may help you, feel free to make me see STARS

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: UserForm with Error Message

    Hi 00Able

    Your sample file contains no data so it's difficult to troubleshoot. The procedure is choking at this line
    Please Login or Register  to view this content.
    The named range "LineList" contains no records so I'd assume this could be causing the error.

    How/where does named range "LineList" get populated?

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: UserForm with Error Message

    It pulls the dynamic name ranges from the worksheet, LookUpLists, the Line list is column L, but note previous to deleting this information, it was still giving the error, I put random letters in, and it still returns the same error. I am perplexed. This issue is happeneing in multiple userforms, and I have no idea why. Yesterday all was fine, today crapoli...deep sighs....

    Having said that all the named ranges are in the lookuplists, named after the column header. so Name would be NameList, Line=LineList, SKU=SKUList, so forth ...

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: UserForm with Error Message

    The problem appears to be caused by empty named ranges. Also you don't need False after .Show

    Please Login or Register  to view this content.
    Last edited by royUK; 01-14-2011 at 03:57 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

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

    Re: UserForm with Error Message

    Setfocus isn't necessary if you set the tabindices correctly:

    Please Login or Register  to view this content.



+ 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