![]() |
Public Function to Return ColorIndex
Hello,
I made (copied) a function that returns the Index of the background of a cell. I saved it in a module in my Personal.xls workbook. Having done that, I thought I=B4d be able to use it like: =3DGetColorIndex(B5) But... I have to use it like: =3DPersonal.xls!GetColorIndex(B5) Is there a way to achieve the first option, simply =3DGetColorIndex(B5) without the Personal.xls! part before the function? thanks, Fries |
Hi Fries,
One way: In the VBE set a reference to your Personal.xls workbook: Tools | References | Scroll to and tick the Personal.xls project You can then use Personal.xls functions like functions native to the workbook. This requires that the workbook using such functions is a workbook which has been saved at least once. --- Regards, Norman "Fries" wrote in message ups.com... Hello, I made (copied) a function that returns the Index of the background of a cell. I saved it in a module in my Personal.xls workbook. Having done that, I thought IŽd be able to use it like: =GetColorIndex(B5) But... I have to use it like: =Personal.xls!GetColorIndex(B5) Is there a way to achieve the first option, simply =GetColorIndex(B5) without the Personal.xls! part before the function? thanks, Fries |
Hi Fries,
Also, functions stored in an Addin can be accesed like native functions. --- Regards, Norman "Fries" wrote in message ups.com... Hello, I made (copied) a function that returns the Index of the background of a cell. I saved it in a module in my Personal.xls workbook. Having done that, I thought IŽd be able to use it like: =GetColorIndex(B5) But... I have to use it like: =Personal.xls!GetColorIndex(B5) Is there a way to achieve the first option, simply =GetColorIndex(B5) without the Personal.xls! part before the function? thanks, Fries |
All times are GMT +1. The time now is 04:54 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com