Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wrote a function in VBA that has two required parameters and two
optional parameters (which have default values set to defined constants). I want to be able to have the user open a form that lets them change the optional parameters default values, then store these values in a table in the spreadsheat. The problem is trying to get these values from the spreadsheet to the optional parameter default values. If I read the optional default values in from the spreadsheet, I have to redefine the default constants as variables, and when I try to compile the code, I get "Compile Error: Constant Expression Required", (which references the optional paramter defaults in the function). Any ideas on how to allow the user to change these optional parameter default values without going into the VBA code? ~Michael |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default Cell Values at Change | Excel Worksheet Functions | |||
Pick up values by parameter | Excel Worksheet Functions | |||
Parameter Query to return multiple values | Excel Discussion (Misc queries) | |||
use function to change a string to function's parameter | Excel Worksheet Functions | |||
Creating Variables Programmically | Excel Discussion (Misc queries) |