Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try Public Function myRange(chaine As String) As Range set myRange = Sheets("Référence").Range(chaine) End Function -- Regards Frank Kabel Frankfurt, Germany "Sylvain" schrieb im Newsbeitrag ... Thank you for your quick reply but i need one more information, please. What should be the return type of my function to be useable as argument for other standard functions in formulas, such as Sum, Correlation coefficient calculus, ... ? I have tried the following function, but it doesn't work : Public Function myRange(chaine As String) As Range plage = Sheets("Référence").Range(chaine) End Function If i write a formula such as =SUM(myRange("B29:B31")) It doesn't work. Thank you for your help ! Sylvain Caillet "Frank Kabel" a écrit dans le message de news: ... Hi if you don't declare the function as private and put it in a standard module you can simply use your function as you would use a worksheet function. Also see http://www.mvps.org/dmcritchie/excel/getstarted.htm -- Regards Frank Kabel Frankfurt, Germany "news.wanadoo.fr" schrieb im Newsbeitrag ... Hi ! Is ther any way to use some vba function i wrote in my cells formulas ?? for example : =myfunction(A1:A10) with function myfunction (myRange as range) .... end Function Thank you all for your answers Sylvain Caillet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with function / Formula | Excel Worksheet Functions | |||
Help with OR function in IF function formula | Excel Worksheet Functions | |||
Help with function/formula please!!! | Excel Worksheet Functions | |||
Function or formula | Excel Worksheet Functions | |||
A formula/function to return a formula/function | Excel Worksheet Functions |