LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default What is the syntax for function text parameters in VBA (Excel

Function CONTAINS(within as String, test as String)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jocken" wrote in message ...
| So I tried that like so:
|
| Function CONTAINS(within, test)
|
| Dim within As String
| Dim test As String
|
| the compiler complains about a duplicate declaration.
| what I want to say is "Function CONTAINS(String within, String test)"; All I
| need is for VBA to set up a function that expects two String-type parameters
| and does calculations with them.
|
| I miss Java... *tear
|
| "Toppers" wrote:
|
| Text parameters are STRING variables
| e.g.
|
| DIM mytext as string
|
| HTH
|
| "Jocken" wrote:
|
| I'm trying to create a custom function in excel 2007 using visual basic. The
| parameter type seems to default to numeric and I cannot figure out the syntax
| to specify text parameters. The example custom function in help only uses
| text parameters. I've gotten my function to compile, but using it results in
| a #VALUE!.




 
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
Why sometimes excel returns error just because function parameters are linked? Paul134 Excel Worksheet Functions 2 February 28th 06 05:15 PM
MSNStockQuote Function Parameters Bobtarrel Excel Worksheet Functions 2 July 17th 05 02:36 PM
Function Parameters Paddyk Setting up and Configuration of Excel 2 April 12th 05 08:52 AM
Implement CSE function through VBA with parameters Bastanu Excel Worksheet Functions 2 March 18th 05 02:11 AM
I need the syntax for the cube root function in excel. Andy Excel Discussion (Misc queries) 3 January 10th 05 08:36 PM


All times are GMT +1. The time now is 01:46 AM.

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"