$$Excel-Macros$$ Re: V look up error 1004

2009-07-07 Thread Balachander S
Thanks Daniel it works Thanks Dave too S baloo On Tue, Jul 7, 2009 at 7:36 PM, Daniel wrote: > Hello. > > The following code works : > > > > Private Sub ComboBox1_Change() > > Result = Application.VLookup(CDbl([Sheet1].ComboBox1.Value), _ > > [Sheet1!Q1:W100], 6, 0) > > End Sub > > > > HT

$$Excel-Macros$$ Re: V look up error 1004

2009-07-07 Thread Daniel
Hello. The following code works : Private Sub ComboBox1_Change() Result = Application.VLookup(CDbl([Sheet1].ComboBox1.Value), _ [Sheet1!Q1:W100], 6, 0) End Sub HTH Daniel De : excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] De la part de Balachander S Envoyé :

$$Excel-Macros$$ Re: V look up error 1004

2009-07-05 Thread Daniel
Could you post a sample file ? Daniel De : excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] De la part de Balachander S Envoyé : dimanche 5 juillet 2009 18:11 À : excel-macros@googlegroups.com Objet : [Norton AntiSpam] $$Excel-Macros$$ Re: V look up error 1004 Attn

$$Excel-Macros$$ Re: V look up error 1004

2009-07-05 Thread Dave Bonallack
Hi, Assuming accno is a named range, try one of the following: WorksheetFunction.VLookup(("accno"), Range("q4:w570"), 5, False) or WorksheetFunction.VLookup(Range(accno), Range("q4:w570"), 5, False) or WorksheetFunction.VLookup(Range("accno"), Range("q4:w570"), 5, False) Regards - Dave. Date: S

$$Excel-Macros$$ Re: V look up error 1004

2009-07-05 Thread Balachander S
Attn Daniel Range q 4 w 570 contains digits Changed the code to DBL same error 1004 :"unable to get the Vlook property of the worksheet function class" Same error Any other suggestions S Baloo On Sun, Jul 5, 2009 at 9:32 PM, Daniel wrote: > « 'accno = ComboBox3.Value » > > > > Comboboxes r

$$Excel-Macros$$ Re: V look up error 1004

2009-07-05 Thread Daniel
« 'accno = ComboBox3.Value » Comboboxes return string value ; if « Range("q4:w570") » contains digits, you may have this error. Change to : accno = cdbl(ComboBox3.Value) HTH Daniel De : excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com] De la part de Balachander S E