View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
yshridhar yshridhar is offline
external usenet poster
 
Posts: 229
Default convert number to word

Follow this procedure which i received from Mr. Biff
How to store this UDF as an ADDIN


Basically, it's the same process but you give the file a different file
extension and you save it to a different location. Although you can save it
to other locations MS has a location just for add-ins. Notice I didn't use
the words have to or special. I don't want to argue about semantics with
anyone!

I'll describe the procedure from the very beginning.

Start Excel
It opens with the default file name of Book1
Hit ALT F11, this will open the VB editor
Hit CTRL R, this will open the project explorer pane on the left side of the
window
Look for VBAProject(Book1) in the explorer pane
Select it, then right click
Select InsertModule
Paste your UDF code in the window that opens on the right
Hit ALT Q to return to Excel
Now, save the file and name it Personal.xla. You should save the file to the
directory named AddIns. I'm using Windows XP with Excel 2002. The
path to my AddIns directory is:

C:\Documents and Settings\User\Application Data\Microsoft\AddIns

Now close Excel. Wait a minute or two then reopen Excel.
You need to load the add-in
Goto the menu ToolsAdd-Ins
You should see the Personal.xla file listed.
Select Personal.xla then click OK
You should be good to go!

Now, you can use this function just like any other function:

=MyFunction(...)


--
Biff
Microsoft Excel MVP


"Tay" wrote:

After I have created the NumberAsText in one spreadsheet, how do I enable the
same to be used in other spreadsheet?