Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include VBA function in Extra!

Status
Not open for further replies.

wwr6196

Programmer
Apr 21, 2005
5
US
I need to include some VBA functions in an Extra! macro. I have tried to use the code below, but it will not compile. I think it has to do w/ the Optional key word. Can this not be used in Extra!???

Code:
Declare Function Replace Lib "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL" Alias "ReplaceA" (Expression As String, Find As String, Replace As String, Optional Start As Long = 1, Optional Count As Long = -1, Optional Compare As VbCompareMethod = vbBinaryCompare) As String
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top