+ Reply to Thread
Results 1 to 6 of 6

Invalid or Unqualified Reference

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Invalid or Unqualified Reference

    Hi Professionals,

    I'm getting the above message when I click cmdUpdateAccount event.

    It's highlighting the line 'n = Application.Match(Me.ComboBox1.Value, .Range("A:A"), 0)'

    Full code is below incase it's something else in it that may cause a problem.

    Basically, the combo box calls the data into the userform and the user can may the relevant changes to the account detail and then 'update' it.

    Code in two parts below:

    Help appreciated!

    Dom

    Please Login or Register  to view this content.
    Last edited by dcompagnone; 08-13-2010 at 08:47 AM. Reason: add closing code tag

  2. #2
    Registered User
    Join Date
    08-11-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Invalid or Unqualified Reference

    Please Login or Register  to view this content.

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

    Re: Invalid or Unqualified Reference

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,320

    Re: Invalid or Unqualified Reference

    Sorry Roy, didn't see your post before I edited the original.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,320

    Re: Invalid or Unqualified Reference

    You haven't used a With... End With statement, so it should be:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-11-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Invalid or Unqualified Reference

    oh man!

    See it's the small things that you miss when you do it late at night.

    thank you.

    And thanks for editing my code tags in. I thought I hade done those.

    Appreciated

    Dom

+ 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