Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to pass arguments and variables common to many functions

Posted on 2011-05-07
Medium Priority
Last Modified: 2012-05-11
i have a spreadsheet that i have used for years that has a few modules of code and lots of excel formulas.  i need to add some new tables to it and the complexity is to great for just formulas.  i have written code for 1 cell that works.  when i tried to do a very similar thing for another cell it worked but the first cell i programmed does not return a value any more.  both functions have an argument and some common variables so they must be interfering with each other.  the first cell's function is called tmr and the 2nd is called caxwf.  thanks.
Question by:kalbano
LVL 43

Accepted Solution

Saqib Husain, Syed earned 500 total points
ID: 35712053
For the TMR change the module name to something different from the sub name.

For the caxwf use the formula

=IF(C25 ="",1,CAX_WF(26))

instead of

=IF(C25 ="none",1,CAX_WF(26))

Author Closing Comment

ID: 35732357
Thanks!  Forgot that module name cant be function name.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question