ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to make a function accessible for all workbooks (https://www.excelbanter.com/excel-programming/329144-how-make-function-accessible-all-workbooks.html)

Mark the Shark

How to make a function accessible for all workbooks
 
Hi---How can I make this functoin accessible to all workbooks...

Function coloring(cell)
'
' coloring Macro
' Macro recorded 11.05.2005 by AABULABAN
'
coloring = cell.Interior.ColorIndex

End Function

I have it saved under the Personal workbook, however, it only works
there and no where else. Please help. Thanks

Chip Pearson

How to make a function accessible for all workbooks
 
If you are calling it from a worksheet cell, you need to include
the workbook name in the call. E.g.,

=personal.xls!coloring(A1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Mark the Shark" wrote in message
om...
Hi---How can I make this functoin accessible to all
workbooks...

Function coloring(cell)
'
' coloring Macro
' Macro recorded 11.05.2005 by AABULABAN
'
coloring = cell.Interior.ColorIndex

End Function

I have it saved under the Personal workbook, however, it only
works
there and no where else. Please help. Thanks




Amr Abulaban

How to make a function accessible for all workbooks
 


Thanks a lot...this was very helpful!!!

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com