#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default OnAction

if i set the onaction property for a commandbarbutton with
onaction = "module.xla!func1"
what is the search path it would use to find module.xla
would it make a difference if this statement was run
inside of module.xla

Thanks,
Richard


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default OnAction

The command bar button stores the whole path to the file
even though it doesn't show the path if the file is open.
If you close the file, and click the button, the file is
loaded then the function executed. I've never set
OnAction without the file open, but you might be able to
do it using:
OnAction = "C:\PathToFile\Modula.xls!Func1"

Most people keep their routines in their Personal.xls file
though, because it is always loaded automatically when
Excel starts.


-----Original Message-----
if i set the onaction property for a commandbarbutton with
onaction = "module.xla!func1"
what is the search path it would use to find module.xla
would it make a difference if this statement was run
inside of module.xla

Thanks,
Richard


.

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
Macro - onAction arguments version83 Excel Worksheet Functions 2 April 10th 10 09:59 PM
Passing several parameters to OnAction property. LABKHAND Excel Discussion (Misc queries) 1 April 24th 09 08:02 PM
OnAction of Menu Bar with variable parameters chris Excel Discussion (Misc queries) 1 August 7th 06 04:03 PM
Timing problem with OnAction! Fred Russell Charts and Charting in Excel 3 October 18th 05 06:11 PM
.ONACTION macro call fails Wayne Excel Discussion (Misc queries) 2 March 2nd 05 05:10 PM


All times are GMT +1. The time now is 10:22 AM.

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

About Us

"It's about Microsoft Excel"