Nov 22, 2009

Vlookup In Vba/excel - Can't doooooo it :(

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > VB Programming

Vlookup In Vba/excel - Can't doooooo it :(

Dagoth Nereviar
What I'm trying to do is have it that when you click a command button ("CommandButton1" name will be changed later on tongue.gif), it looks up a value on the work sheet "TimeTable" and changes the caption ("Label1" again will change it tongue.gif) on the form "UserForm1".

What I have is some simple code:
CODE
Private Sub CommandButton1_Click()

Label1.Caption = Application.WorksheetFunction.VLookup("Gateway Plaza", "C3:C26", 1, False)

End Sub


At first I kept getting "Run time error 13" but I added "WorksheetFunction" and then I started getting "Run time error 1004: Unable to get the Vlookup property of the WorksheetFunction Class"

How do I fix it?

Edit: Haha, I didn't need to use Vlookup laugh.gif All I had to do was:
Label1.Caption = Range("C3") laugh.gif

Close topic please tongue.gif

 

 

 


Comment/Reply (w/o sign-up)

(G)Sandeep
Vlookup macro
Vlookup In Vba/excel

Dear all, if anybody could help me creating a vlookup macro using offset. Data is too large so I need a macro which work fast. Sheet1 contains folio in coloum A and units in coulumn B. Sheet2 contains the same. I want compare the units for same folio in coulumn C.

Thanks in advance

-question by Sandeep

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Vlookup Vbaexcel Can39t Doooooo


    Looking for vlookup, vba, excel, doooooo,

Searching Video's for vlookup, vba, excel, doooooo,
See Also,
advertisement


Vlookup In Vba/excel - Can't doooooo it :(

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com