Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Function wizard parameters
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
valeriorossi@mclink.net  
View profile  
 More options Mar 16 2012, 3:59 am
From: "valerioro...@mclink.net" <valerioro...@mclink.net>
Date: Fri, 16 Mar 2012 00:59:50 -0700 (PDT)
Local: Fri, Mar 16 2012 3:59 am
Subject: Function wizard parameters
Hello Govert,
I have a few questions about function wizard.
1) Is there the possibility to call an Udf function with parameters
and get those parameters not in the pop-up? For example the parameters
could be static variables in my class, or cell values stored in cells
in the current excel worksheet.
2) If so, can I have a sort of mixed-wizard popup that let users
select one parameter in the usual way and the system loads the second
parameters elsewhere?
3) May I load in the wizard a default or suggested parameter value?
4) May I graphically interact with the graphic interface of the wizard
(buttons, text fields, etc.)?

Last,
do you have  a link or suggestions on how to programmatically manage
interactions between Udf functions and Excel worksheet elements(cells,
ranges, etc.)? (The function wizard indeed interacts with the
worksheet). For example, I still don't if it is possible or thread-
safe to read or write cells value in the function body of my Ufd.
I've red through the forum but I'm still a bit confused about it.
Thanks a lot
Valerio


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Govert van Drimmelen  
View profile  
 More options Mar 16 2012, 8:47 am
From: Govert van Drimmelen <gov...@icon.co.za>
Date: Fri, 16 Mar 2012 12:47:11 +0000
Local: Fri, Mar 16 2012 8:47 am
Subject: RE: [ExcelDna] Function wizard parameters
Hi Valerio,

It's not clear from your question what you are trying to do. Maybe some more concrete example would make it easier to answer.

1) The Excel function wizard will display all the arguments of your function (except if you have too many arguments...). Your function could internally (not as a parameter) use static values from other types in your library in its calculation, or (if it is marked as IsMacroType-true) even read other parts of the sheet to use as part of the function calculation.

2) Instead of the 'system loading other parameters elsewhere', maybe your function can just read the values elsewhere, and not have them passed as parameters.

3) & 4) Excel doesn't have any other ways to customise the function wizard. You could make a ribbon button that pastes the function and some pre-filled parameters into the current cell, and then pops up the function wizard.

Functions that you mark with the IsMacroType=true attribute:
    [ExcelFunction(IsMacroType=true)]
    public double MyFunction() {...}
are able to _read_ other parts of the sheet safely (using the ExcelReference type).

Your functions cannot _write_ to other parts of the sheet easily or safely, though there are some advanced workarounds. You should rather use macros triggered by shortcut keys or a ribbon interface to trigger writing to the sheet.

Regards,
Govert

________________________________________
From: exceldna@googlegroups.com [exceldna@googlegroups.com] on behalf of valerioro...@mclink.net [valerioro...@mclink.net]
Sent: 16 March 2012 09:59 AM
To: Excel-DNA
Subject: [ExcelDna] Function wizard parameters

Hello Govert,
I have a few questions about function wizard.
1) Is there the possibility to call an Udf function with parameters
and get those parameters not in the pop-up? For example the parameters
could be static variables in my class, or cell values stored in cells
in the current excel worksheet.
2) If so, can I have a sort of mixed-wizard popup that let users
select one parameter in the usual way and the system loads the second
parameters elsewhere?
3) May I load in the wizard a default or suggested parameter value?
4) May I graphically interact with the graphic interface of the wizard
(buttons, text fields, etc.)?

Last,
do you have  a link or suggestions on how to programmatically manage
interactions between Udf functions and Excel worksheet elements(cells,
ranges, etc.)? (The function wizard indeed interacts with the
worksheet). For example, I still don't if it is possible or thread-
safe to read or write cells value in the function body of my Ufd.
I've red through the forum but I'm still a bit confused about it.
Thanks a lot
Valerio


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
valerio rossi  
View profile  
 More options Mar 22 2012, 3:04 am
From: valerio rossi <valerioro...@mclink.net>
Date: Thu, 22 Mar 2012 08:04:55 +0100 (CET)
Local: Thurs, Mar 22 2012 3:04 am
Subject: Re: RE: [ExcelDna] Function wizard parameters
Thanks and sorry for not to be so clear in the questions.
I just wanted to know the possibilities of interaction with the function wizard. Now it is all clear.
Thanks
Valerio

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »