Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Following two functions are used to test change cell value and format. the
dropdown_test function changes the cell setting to dropdown, which works. The second function tries to change the number format, and expect a percentage format present. It doesn't work. Hope someone can tell me the reason why it doesn't work. Both functions locate in module in a test.xla file and called from Excel User Defined category. Function dropdown_test() ActiveCell.Select ActiveCell.Clear With Selection.Validation .Delete .Add Type:=xlValidateList, Operator:=xlBetween, Formula1:="a,b,c,d,e" .IgnoreBlank = True .InCellDropdown = True End With dropdown_test = "a" End Function Function numberformat_pc_test() ActiveCell.NumberFormat = "0.00" numberformat_pc_test = 0.234 End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How does a module of VB work in a Worksheet? | Excel Worksheet Functions | |||
Setting NumberFormat within a VBA Module | Excel Discussion (Misc queries) | |||
Custom function does not work from an addin | Excel Programming | |||
Reference Addin Module from sheet code | Excel Programming | |||
addin a module on fly | Excel Programming |