How to use Excel Functions in VBA?

J

johnbest

Hi there

While using *Excel Search Function* in VBA programming, I got
"*Sub or Function not defined!!*" Error...

But need to use the Search funtion..:confused:
So please tell me how to use it?

Thanks in advance
john bes
 
D

Dave Peterson

do you mean the worksheet function =search()?

If you do, then you may want to read about VBA's InStr() function. It's
built-in and works pretty much the same.
 
K

Kris

johnbest said:
Hi there

While using *Excel Search Function* in VBA programming, I got
"*Sub or Function not defined!!*" Error...

But need to use the Search funtion..:confused:
So please tell me how to use it?

Thanks in advance
john best

Application.WorksheetFunction.Search
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top