Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to attach function to a custom Menubar?


Rob,
Its Great.
Thank you for your patiance and taking me out of a major problem.
However there is a small problem.

If I use your code as it is the result is nothing.
If I replace If Err.Number < 0 to If Err.Number = 0 I get the prope
result.
Can you pl explain this or am I doing somthing wrong?

Secondly, How to use the same trick for the formula functions havin
morethen one arguments? I have got a function which takes 4 arguments
I am planning to use your solution for all my custom formul
functions.

With regards,
Malcom

--
Malcom Jaz
-----------------------------------------------------------------------
Malcom Jazz's Profile: http://www.excelforum.com/member.php...fo&userid=1587
View this thread: http://www.excelforum.com/showthread.php?threadid=27360

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default How to attach function to a custom Menubar?

First question... I think I made a mistake. You corrected it.

Second...
eg.
Selection.Formula = "=MyFunction(" & rngFirst.Address & ", " &
rngSecond.Address & ", " & rngThird.Address & ", " & rngFourth.Address & ")"



--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Malcom Jazz" wrote in message
...

Rob,
Its Great.
Thank you for your patiance and taking me out of a major problem.
However there is a small problem.

If I use your code as it is the result is nothing.
If I replace If Err.Number < 0 to If Err.Number = 0 I get the proper
result.
Can you pl explain this or am I doing somthing wrong?

Secondly, How to use the same trick for the formula functions having
morethen one arguments? I have got a function which takes 4 arguments.
I am planning to use your solution for all my custom formula
functions.

With regards,
Malcom.


--
Malcom Jazz
------------------------------------------------------------------------
Malcom Jazz's Profile:
http://www.excelforum.com/member.php...o&userid=15872
View this thread: http://www.excelforum.com/showthread...hreadid=273601



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
Custom Menubar Bret Excel Discussion (Misc queries) 1 August 19th 07 11:52 PM
How to attach function to a custom Menubar? Malcom Jazz[_7_] Excel Programming 1 November 1st 04 10:31 AM
How to attach function to a custom Menubar? Malcom Jazz[_6_] Excel Programming 0 November 1st 04 09:07 AM
How to attach function to a custom Menubar? Malcom Jazz[_5_] Excel Programming 1 November 1st 04 08:48 AM
How to attach function to a custom Menubar? Malcom Jazz[_4_] Excel Programming 0 October 29th 04 02:27 PM


All times are GMT +1. The time now is 12:15 AM.

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"