IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Vlookup In Vba/excel

, Can't doooooo it :(


Dagoth Nereviar
no avatar
Privileged Member
*********
Group: [HOSTED]
Posts: 536
Joined: 19-May 06
From: Leeds, UK
Member No.: 23,963



Post #1 post Mar 5 2007, 11:18 AM
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

This post has been edited by Dagoth Nereviar: Mar 5 2007, 11:26 AM
Go to the top of the page
+Quote Post
iGuest
no avatar
Hail Caesar!
*********************
Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



Post #2 post May 31 2009, 04:51 AM
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

 

Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 etms 816 22nd June 2006 - 12:45 PM
Last post by: etms
No New Posts   1 googlue 2,159 4th October 2004 - 07:12 AM
Last post by: sanweikui
No new 33 Paul 3,815 4th February 2007 - 06:46 PM
Last post by: delivi
No New Posts   0 Binod Singh 1,701 27th March 2005 - 06:41 AM
Last post by: Binod Singh
No New Posts   2 kvarnerexpress 2,340 23rd May 2005 - 05:08 AM
Last post by: lava.alt
No New Posts   2 cse-icons 7,414 26th May 2005 - 12:23 AM
Last post by: DanManIt
No New Posts   9 ARNEL 2,743 21st May 2005 - 11:04 PM
Last post by: badinfluence
No New Posts   4 kvarnerexpress 1,831 20th October 2005 - 02:45 AM
Last post by: dul
No New Posts   5 cse-icons 2,576 11th June 2005 - 09:25 AM
Last post by: cse-icons
No New Posts   0 moldboy 1,476 13th June 2005 - 03:06 AM
Last post by: moldboy
No New Posts   13 csmith 8,778 4th August 2009 - 10:03 PM
Last post by: iG-David
No New Posts   3 9khonnei 1,199 25th February 2006 - 01:09 AM
Last post by: Lyon2
No New Posts   4 moldboy 770 11th January 2006 - 11:46 PM
Last post by: moldboy
No New Posts   1 Lyon2 2,841 23rd March 2006 - 07:13 AM
Last post by: Lyon2
No New Posts   5 tehyev 889 24th October 2006 - 10:51 PM
Last post by: BuffaloHelp


 



RSS Open Discussion Time is now: 7th November 2009 - 01:03 AM

Web Hosting Powered by ComputingHost.com.