Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create own function in EXCEL
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Create own function in EXCEL
Miscellaneous
Thread ID:
00487533
Message ID:
00487533
Views:
36
Hello all,

My idea is to create own Excel-Function's with VBA to access to an VFP-COM-Server. Example for the VBA-Code is:


**************************************************************
* Create the object-reference to the COM-server
**************************************************************
Private Sub Workbook_open()
Set FIBU_funktionen.FIBU = CreateObject("fibuole.ex_sap")
End Sub


*********************************************************
Example for a own-excel-function in VBA
*********************************************************
Public Function get_fisaldo(lnKonto, _
lnJahr, _
lnMonat, _
lcGesb, _
lnKennzahl)

get_fisaldo = FIBU_funktionen.FIBU.loFunction.get_fisaldo( _
lnKonto, _
lnJahr, _
lnMonat, _
lcGesb, _
lnKennzahl)

End Function



The Com-Server calculatate the resultat and return one value. In this Example, i'm write in any cell: =get_fibusaldo(61000,2000,1,'0001',5) .

My Problem is:
Excel create automatic an assistent for the own function. This is wunderfull
for simple functions. How cann i'm manipulate this assistent ? My own functions have normaly many of parameters, and i'm will the user give an interface to set this (with combobox, etc) .

Where have an idea ?

Hendrick Kurland
Reply
Map
View

Click here to load this message in the networking platform