Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi
I have 2 user defined functions in my personal workbook. Function GetFontColor(mycell As Range) GetFontColor = mycell.Font.ColorIndex End Function Function GetFillColor(mycell As Range) GetFillColor = mycell.Interior.ColorIndex End Function I have entered these formuilas =getfillcolor(A1) =getfontcolor(A1) Both result in the #Name? error. What is the problem? TIA |
#2
![]() |
|||
|
|||
![]()
Use:
=Personal.xls!GetFillColor(A1) By default, Personal.xls is just a regular (though hidden) workbook, so you need to use the workbook name. Add-ins don't require the workbook prefix. In article , "Ray A" wrote: Hi I have 2 user defined functions in my personal workbook. Function GetFontColor(mycell As Range) GetFontColor = mycell.Font.ColorIndex End Function Function GetFillColor(mycell As Range) GetFillColor = mycell.Interior.ColorIndex End Function I have entered these formuilas =getfillcolor(A1) =getfontcolor(A1) Both result in the #Name? error. What is the problem? TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time Sheet for my org Im still having trouble | Excel Discussion (Misc queries) | |||
Having trouble totaling columns in excel 2003, always worked b4 | Excel Worksheet Functions | |||
I have had trouble with textbox text to worksheet | Excel Discussion (Misc queries) | |||
Trouble opening an Excel file that contains macros | Excel Worksheet Functions | |||
Trouble with Dates between 2 seperate worksheets | Excel Discussion (Misc queries) |