LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Calling functions from Excel worksheets and the Find function in XL '97

Can anyone tell me what the limitations of calling public functions from an
Excel worksheets is?

I've picked up using UDFs as a method of conditional formatting (as Jake
Marx suggested to me in an earlier post,) but it seems they can't accomplish
everything I want them to do.

For instance, suppose my code looks like this:

=NOT(Findvar()) (<---The conditional formatting formula)


Private Function Findvar() as Boolean

Workbooks.open "F:\Database.xls"

Findvar = MsgBox("Test", vbOKCancel, "Test")


When data is entered into the cell (and oddly enough, sometimes when you
click next to it,) the msgbox is displayed and the cell's formating is
changed correctly according to the results, but Excel doesn't even attemp to
open the workbook. It seems many other things I can include in the function
won't be executed either. Any help with this would be much appreciated!



Also, there is no information on the VBA function .Find in my help files. If
someone could tell me about it's usage, mainly about what data type it
returns, I would appreciate that as well.

TIA
Mike-hime


 
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
Calling functions from dll T.K Kullervo Excel Programming 0 September 29th 03 09:55 AM
Calling Add-in functions from VBA Mark[_21_] Excel Programming 5 September 12th 03 08:49 PM
Calling certain functions within VBA Myrna Larson[_2_] Excel Programming 0 August 11th 03 10:57 PM
Calling certain functions within VBA Ron de Bruin Excel Programming 0 August 11th 03 10:32 PM
Calling certain functions within VBA james Excel Programming 0 August 11th 03 10:27 PM


All times are GMT +1. The time now is 03:20 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"