![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Bolton, Lancs
Posts: 39
|
I am trying to write a procedure to lookup a number against a list of controlling managers using the Ondoubleclick property
Sub Auto_Open() Worksheets(1).OnDoubleClick = "Check_name" End Sub Sub Check_name() name1 = VLookup(r1c1, contacts, 4, False) MsgBox (name1) End Sub But I keep getting the error Sub or function not defined. Help!!!!! |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Quote:
name1 = worksheetfunction.VLookup .....
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Maryland
Posts: 424
|
Hi!
Just curious how you would define the table array as 'Contacts' so you can use it as an argument? Thanks |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Location: Bolton, Lancs
Posts: 39
|
Thanks Ricky that stopped me scratching my head!
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Bolton, Lancs
Posts: 39
|
Its defined as
Worksheets(1).Range("a1:e16") Dave |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|