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? Thanks for your help... Code: Function rowheight(rng As Range) Application.Volatile rowheight = rng.Areas(1).Cells(1, 1).rowheight End Function *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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
#NAME? Error With User Defined Functions | Excel Worksheet Functions | |||
Using user defined workbook name in macro worksheet functions | Excel Programming | |||
User Defined Functions - Help Text - Make it Easy for the User | Excel Programming | |||
User-defined data type; Error: Only User-defined types... | Excel Programming | |||
excel functions and User defined functions | Excel Programming |