Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Getting started programming a UDF.
I am trying to write some DLL's to be accessed by Excel. But I have never before even written an UDF for Excel and cannot get the most basic stuff to work. I opened a VB code window from Excel and copied into it the code below (from a post by Kevin Stecyk). Option Explicit Public Function Test(dAmt As Double) As Double Test = dAmt * 2 End Function In the spreadsheet, I entered in a cell, =Test(5) The answer was #Name? What am I missing? TIA, JohnH |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Getting started tab | New Users to Excel | |||
VBA Getting Started | Excel Discussion (Misc queries) | |||
Getting Started Pane | New Users to Excel | |||
How to get started with VBA and macros? | Excel Discussion (Misc queries) | |||
Getting started pane | Excel Discussion (Misc queries) |