+ Reply to Thread
Results 1 to 2 of 2

Run time error 1004 unable to get the vlookup property of the worksheet function class

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Run time error 1004 unable to get the vlookup property of the worksheet function class

    As a new user of vba i have created a user form to enter doctors database. in the form i have
    combobox1 Row source worksheet 'Teritory!A2:A52'
    TextBox2 to generate a code(A,B,C...) based on the area. Source of the Area code is 'Teritory!B2:B52'
    My code is as follows
    Please Login or Register  to view this content.
    Working fine unless i am entering an area which is not included in the list. if i enter a area which is not in the list ('Teritory!a2:a52) i am getting an error massage 'Run time error 1004 unable to get the vlookup property of the worksheet function class' . Please help me to handle the error.
    Last edited by JBeaucaire; 07-13-2012 at 06:09 PM. Reason: Added code tags as per forum rules, please remember next time.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Run time error 1004 unable to get the vlookup property of the worksheet function class

    You'll need to trap for error and give alternate instructions for when the error occurs:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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