+ Reply to Thread
Results 1 to 3 of 3

vba - dependable combo box - runtime error '1004'

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    vba - dependable combo box - runtime error '1004'

    Hi,

    I am very very new to VBA and need help with this VBA code.

    I am creating a search data base. This database will have 2 search functions. One search funtion has 3 combo boxes which are dependable on each other (which is working). Now I want to create the second search option which will 2 comboboxes and again need to be dependable so that staff will be able to either search though comboboxes 1-3 OR 4-5. I get error in this line when I try to run the code (For rowNum = .Range(nameRange).Row + 1 To .Cells(Rows.Count, .Range(nameRange).Column).End(xlUp).Row)

    full code
    Please Login or Register  to view this content.
    Please help! Thank you
    Last edited by Leith Ross; 06-25-2012 at 12:56 AM. Reason: Added Code Tags

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

    Re: vba - dependable combo box - runtime error '1004'

    Hello plavooka23 ,

    Welcome to the Forum!

    If you can post a copy of your workbook for review, it will help expedite a workable solution. If you have any sensitive or confidential information in the workbook then please redact it before you post the workbook.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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!)

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

    Re: vba - dependable combo box - runtime error '1004'

    Dude can you add some code tags

    and What error type?

    It very hard with out the workbook
    Please Login or Register  to view this content.
    Last edited by pike; 06-25-2012 at 01:09 AM.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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