Results 1 to 10 of 10

VBA VLookup Error 1004

Threaded View

Ronny66 VBA VLookup Error 1004 05-17-2013, 07:10 AM
ARGK Re: VBA VLookup Error 1004 05-17-2013, 07:31 AM
Ronny66 Re: VBA VLookup Error 1004 05-17-2013, 08:02 AM
ARGK Re: VBA VLookup Error 1004 05-17-2013, 08:13 AM
Norie Are the values in A2:A18 on... 05-17-2013, 08:15 AM
Ronny66 Re: VBA VLookup Error 1004 05-17-2013, 08:37 AM
Norie Re: VBA VLookup Error 1004 05-17-2013, 09:40 AM
Ronny66 Re: VBA VLookup Error 1004 05-17-2013, 10:10 AM
Norie Re: VBA VLookup Error 1004 05-17-2013, 10:24 AM
Ronny66 Re: VBA VLookup Error 1004 08-06-2013, 09:41 AM
  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    11

    VBA VLookup Error 1004

    Hi All,

    Im trying to create a userform in VBA in which I can manually enter a number in a textbox which then will search for the corresponding data in a different sheet.

    
    Private Sub textNumber_Change()
    
    Dim Number As Integer
    Dim Costumer As String
    
    Number = textNumber.Value
    
    Costumer = Application.WorksheetFunction.VLookup((textNumber.Value), [sheet4!A2:Z18], 2, False)
    labelCostumer.Caption = "Costumer: " & Costumer
    When I try this, I get error 1004; "The properties of Vlookup of WoksheetFunction cannot be executed".

    What am I doing wrong and how to fix this?

    Thanks in advanced!!
    Last edited by Ronny66; 05-17-2013 at 07:19 AM.

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