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!

Does Lotus have User-Defined Functions?

Status
Not open for further replies.

RosewoodCrocket

Programmer
Jan 20, 2006
7
Hi guys,

I have three questions relating to user-defined functions using Lotus:

(1) Does Lotus provide the ability to use LotusScript to produce a User Defined Function (UDF) as can be done in Excel? That is, can you produce a function that returns a value based on inputs to the function and then utilize that function within the spreadsheet environment as you would an @Function()?

(2) If this can be done, could someone show a simple example of how to, say, make an @SumIt() function, which in Excel VBA, might look like this:

Code:
Sub SumIt(Arg1 As Variant, Arg2 As Variant)
    SumIt = Arg1 + Arg2
End Sub

(3) Are such UDFs prevented from manipulating the spreadsheet environment as they are in Excel? For example, in Excel, UDFs are prevented from deleting rows, or affecting cell formatting or the like. Are Lotus UDFs also similarly prevented?

Thanks in advance! I really appreciate any and all help on this...

-- Mike
 
Sorry, my bad, in the above, the UDF code for Excel VBA should have been a Function, not a Sub:

Code:
Function SumIt(Arg1 As Variant, Arg2 As Variant)
    SumIt = Arg1 + Arg2
End Sub

I don't know how to edit after it has been submitted, or I would have simply edited the above. Sorry for any confusion, and I appreciate any and all help... Thanks in advance. :)

-- Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top