LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default How to create a simple VBA Custom Function

Through Insert | Name | Define, I can create a name (for example MyRatio)
to hold the value 2.53. In VBA, how can I create a function to hold this
value?

I know nothing about creating Custom VBA Function and is trying to learn
from this simple example.

Lets give the function the name MyRatio and I need it to hold any value
with 2 decimals.

Its ok to hardcode the value within the function procedure as I will edit
the value in VBA whenver the rate changes.

Any help is appreciated. Thanks a lot

--
Edmund
(Using Excel XP)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a simple input box Marilyn Excel Discussion (Misc queries) 4 October 28th 08 09:08 AM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Create custom function andyiain Excel Discussion (Misc queries) 3 March 31st 06 04:33 PM
Create custom function and add to the Flamikey[_2_] Excel Programming 1 January 11th 04 01:31 AM
Trying to create a custom "clear worksheet" function (in a VBA module) Scott Lyon Excel Programming 1 July 29th 03 08:34 PM


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"