Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
crate formula in VBA
Hello, is there a possibility to create an own formula in VBA, so that it can be used in the spreadsheet like e.g. SUM(),TAN(), or ... Thanks. -- Tadashii ------------------------------------------------------------------------ Tadashii's Profile: http://www.excelforum.com/member.php...o&userid=23918 View this thread: http://www.excelforum.com/showthread...hreadid=499650 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
crate formula in VBA
Activecell.Formula = "=SUM(A1:A10)"
etc. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Tadashii" wrote in message ... Hello, is there a possibility to create an own formula in VBA, so that it can be used in the spreadsheet like e.g. SUM(),TAN(), or ... Thanks. -- Tadashii ------------------------------------------------------------------------ Tadashii's Profile: http://www.excelforum.com/member.php...o&userid=23918 View this thread: http://www.excelforum.com/showthread...hreadid=499650 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
crate formula in VBA
Tadashii,
You mean a User Defined Function (UDF) ? In a Standard module, something like: Public Function MyFunction (ArgIn As Long) As String MyFunction = "You are " & ArgIn & " years old." End Function Then call it from a worksheet cell. e.g, A1: =MyFunction(1000) NickHK "Tadashii" wrote in message ... Hello, is there a possibility to create an own formula in VBA, so that it can be used in the spreadsheet like e.g. SUM(),TAN(), or ... Thanks. -- Tadashii ------------------------------------------------------------------------ Tadashii's Profile: http://www.excelforum.com/member.php...o&userid=23918 View this thread: http://www.excelforum.com/showthread...hreadid=499650 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
crate formula in VBA
That's exactly what i need thanks NickHK -- Tadashii ------------------------------------------------------------------------ Tadashii's Profile: http://www.excelforum.com/member.php...o&userid=23918 View this thread: http://www.excelforum.com/showthread...hreadid=499650 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I crate a function for week of year + year in same cell. | Excel Worksheet Functions | |||
Add data to cell to crate formula | Excel Discussion (Misc queries) | |||
Crate group of date, with Dynamic Range in pivot table not working | Excel Discussion (Misc queries) | |||
help how to crate group of date with Dynamic Range? | Excel Discussion (Misc queries) | |||
Commenting custom formula fields/formula on formula editor | Excel Programming |