ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   format optional parameter (https://www.excelbanter.com/excel-discussion-misc-queries/45781-format-optional-parameter.html)

compound

format optional parameter
 

I've seen a long time ago that optional parameters in the user defined
function could be italicizes in the Function arguments window in excel.


This is what I'm trying to achieve.
If I have a function MyFunction(byval TradeDate as date, optional byval
Price as double = 0) then if I go in to spreadsheet and insert function
MyFunction into a cell and then open function arguments window then
"TradeDate" argument will look bold and "Price" argument will look Bold
and Italic.

Thank you!
Compound.


--
compound
------------------------------------------------------------------------
compound's Profile: http://www.excelforum.com/member.php...o&userid=11556
View this thread: http://www.excelforum.com/showthread...hreadid=468305



All times are GMT +1. The time now is 07:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com