Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fries
 
Posts: n/a
Default 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

  #2   Report Post  
Norman Jones
 
Posts: n/a
Default

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


  #3   Report Post  
Norman Jones
 
Posts: n/a
Default

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Huge problem with "if" formula's [email protected] Excel Discussion (Misc queries) 16 July 20th 05 07:20 PM
Need Excel Function that will return # of char in preceding cell klafert Excel Worksheet Functions 2 June 19th 05 04:50 PM
pmt function in Excel does not return correct monthly payment amou Harraman@Bangalore Excel Worksheet Functions 6 March 3rd 05 01:28 PM
Function to return value from each tab Steven Leuck Excel Worksheet Functions 1 March 3rd 05 04:11 AM
need IF function to return 0 if it finds a one out of three words aledger Excel Worksheet Functions 3 March 1st 05 12:47 AM


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"