Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Lookup in VBA

I was about to embark on moving some VLOOKUP type code into a VBA module
using the "WorksheetFunction" approach. First however, I thought I'd check
whether there was an easier, more direct approach.

Following my nose, I find the VBA development help system provides a list of
available native VBA functions which include LOOKUP so I don't have to mess
with the "worksheetfunction" approach. Wonderful.

I follow the VBA help system for syntax and plug it into a VBA module. VBA
provides a compile error though "Sub or Function not defined".

What's going on? The VBA help system helpfully describes the function but
the compiler does not recognize it. Do I need to link to something? I've
never stumbled across such a thing in VBA before.

Thanks.

Bill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Lookup in VBA

Now I understand. I misread the Help system. Moving right along...

Bill
----------------
"Bill Martin" wrote in message
...
I was about to embark on moving some VLOOKUP type code into a VBA module
using the "WorksheetFunction" approach. First however, I thought I'd check
whether there was an easier, more direct approach.

Following my nose, I find the VBA development help system provides a list
of available native VBA functions which include LOOKUP so I don't have to
mess with the "worksheetfunction" approach. Wonderful.

I follow the VBA help system for syntax and plug it into a VBA module.
VBA provides a compile error though "Sub or Function not defined".

What's going on? The VBA help system helpfully describes the function but
the compiler does not recognize it. Do I need to link to something? I've
never stumbled across such a thing in VBA before.

Thanks.

Bill



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup help. lookup result based on data in 2 columns lcc Excel Worksheet Functions 3 April 6th 10 01:20 PM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"