a method syntax question

Itsik Zamir

New Member
Joined
Apr 15, 2011
Messages
1
Hi all,
I have registered an automatic trading platform in which I can send Buy/Sell orders to the stock exchange. In their user manual they gave the following example for a user method that will send orders with VBA. I want to send the orders from Excel but I haven't succeed implementing it.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>​
The method is: User.SendMaofAsynchSpeedOrder Method <o:p></o:p>
Their example is:
<o:p> </o:p>​
[Visual Basic]
Public Function SendMaofAsynchSpeedOrder {

ByVal SessionId As Long, _
ByRef Orders() As MaofOrderType, _
ByRef ErrNO As Long, _
Optional ByVal SPCOrder As Long = 0

) As Long
<o:p> </o:p>
While the MaofOrderType was declared in their example as:
[Visual Basic]
Public Type MaofOrderType

Branch As String <o:p></o:p>
Account As String <o:p></o:p>
Option As String <o:p></o:p>
Operation As String <o:p></o:p>
Ammount As String <o:p></o:p>
Price As String <o:p></o:p>
Sug_Pkuda As String <o:p></o:p>
Asmachta As String <o:p></o:p>
Pass As Long <o:p></o:p>
OrderId As Long <o:p></o:p>
<o:p> </o:p>
End Type
<o:p> </o:p>

Parameters:<o:p></o:p>

SessionId <o:p></o:p>
Unique Session Identification number that identifies the session for which the function is called. <o:p></o:p>

Orders <o:p></o:p>
Array of MaofOrderType containing all details regarding the orders that are being sent. <o:p></o:p>

ErrNO <o:p></o:p>
If an error occurs during the operation, an error number will be relayed back to the client application.<o:p></o:p>
<o:p></o:p>
<o:p> </o:p>​
My question is how do I implement the User.SendMaofAsynchSpeedOrder Method ?<o:p></o:p>
<o:p> </o:p>​
Thanks a lot<o:p></o:p>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,592
Messages
6,179,776
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top