LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Argument not optional Error 449! Need Help

Hy,

Let's say I have a dll made in VB6. This dll contains 3 class
modules(ClassA, ClassB, ClassOper) and one module(MyFunctions).
In MyFunctions I have a function like this:
Public Function DoSome(collecFirst as Collection, collecSecond as
Collection, objA as ClassA, objB as ClassB) as Double.

In ClassOper I have the function:
Public Function DoSomething(collecFirst as Collection, collecSecond as
Collection, objA as ClassA, objB as ClassB) as Double
If (IsValid) Then
DoSomething = DoSome(collecFirst, collecSecond, objA,
objB)
Else
DoSomething = -10000
End Function

I have an Excel woorkbook that use this dll. Let's say I have a macro
in Excel called TestDll
Public Sub TestDll()
Dim myOper as ClassOper
Set myOper = New ClassOper
MsgBox myOper.DoSomething(myCollecFirst, myCollecSecond, myObjA,
myObjB)
End Sub
When trying to run TestDll I get the following error: "argument not
optional Error 449"

Can somebody help me with this? (I hope that my example I good..)

Thanks and best regards,
O

 
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
Compile Error Argument Not optional [email protected] Excel Discussion (Misc queries) 1 August 16th 06 04:58 PM
Compile Error: Argument not optional Brett Smith[_2_] Excel Programming 1 January 19th 06 05:39 PM
error message: compile error, argument not optional Pierre via OfficeKB.com Excel Programming 3 September 5th 05 03:45 PM
optional argument in a function visitor Excel Programming 4 May 13th 05 07:41 PM
Complie Error- Argument not optional Roberta Excel Programming 5 April 4th 05 02:31 PM


All times are GMT +1. The time now is 02:29 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"