Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2004, 10:43 PM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Formula

Not sure if this falls inder Excel VBA or not but,

Is it possible to add formula (ie create them) to the list of formula that comes with Excel?

Thanks!

 
Old February 18th, 2004, 05:08 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This topic falls under VBA.

When you have created a formula it will appear under the User Defined category in Excel. The User Defined category will only appear when a formula is created.

You create a formula in VBA using Function and End Function instead of Sub in your procedure.
 
Old November 22nd, 2004, 06:45 AM
Authorized User
 
Join Date: May 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also interested in this topic.
I created a function but I cannot see it in the User Defined category. What can be the reason?

Mihai B
[email protected]


Quote:
quote:Originally posted by llewellynj
 This topic falls under VBA.

When you have created a formula it will appear under the User Defined category in Excel. The User Defined category will only appear when a formula is created.

You create a formula in VBA using Function and End Function instead of Sub in your procedure.
 
Old November 23rd, 2004, 06:53 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

UDF functions must be created to modules not in the Excel objects (Thisworkbook etc.)

-vemaju

 
Old November 23rd, 2004, 06:59 AM
Authorized User
 
Join Date: May 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! It works now.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with formula Juan0214 Access 4 August 1st, 2008 07:25 AM
Help with formula 2 Juan0214 Access 3 July 10th, 2008 06:52 PM
Adding Formula Ariqa Crystal Reports 1 October 19th, 2004 11:32 AM
formula winnie1778 Crystal Reports 14 October 16th, 2003 03:25 AM
Formula Ned Pro VB 6 2 September 10th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.