Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For some reason, we keep getting an occassional #NAME error in cells
that contain the user defined function 'rowheight()' created by the code shown below when we open the workbook in which it resides. It is important to note that the workbook is a shared workbook. However, the problem can then be easily corrected by simply pressing F2 on any one of the #NAME cells and then pressing <Enter. Then excel recognizes the UDF. But why doesn't it recognize it when we open the workbook, and what can I do to correct the problem? The code sits alone in Module 1 of the workbook. All other macros are in Module 2. This is the only UDF in the workbook. Thanks for your help... Code: Function rowheight(rng As Range) Application.Volatile rowheight = rng.Areas(1).Cells(1, 1).rowheight End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spacebar creates value error | Excel Discussion (Misc queries) | |||
#NAME error for user defined functions at workbook startup | Excel Programming | |||
Combobox creates error | Excel Worksheet Functions | |||
workbook creates desktop shortcut...HELP | Excel Programming | |||
Delete creates error during Change event | Excel Programming |