Open Application from Ribbon

T

Tom Ventouris

My Button:
<button id="edudex" label="Edudex" onAction="=edudex()"/>
The Function:
Public Function Edudex()
Shell ("C:\Program Files\Edu.Dex\EduDex.exe")
End Function
The Error Message:
"The expression you entered has a function name that system can't find."

Any help?
 
A

Albert D. Kallal

Hum.

Is the function declared in a standard public module, or a form that HAS THE
FOCUS.

In other words, it has to be one of the above two possible:

What you have looks ok, it just a question of where you placed your sample
code....
 
T

Tom Ventouris

This is a Public Function is in a module "MyRibbonFunctions. It is where I
have all the other functions I call from the Ribbon. Al the others work fine.
 
T

Tom Ventouris

Believe this (only) if you will!
With validation of my function by an MVP, I figured all that's left is the
name. I changed it's name and it works.Created a new function named "edudex"
and received the same error message. Tried different function names, they all
work.

The function name is now "validator" (Edudex is a data validation system).

My application opens from the Ribbon, as long as the name of the function I
call to open is not "edudex". I do not see this in the reserved words list.

One for Ripley's?
 
A

Albert D. Kallal

Tom Ventouris said:
Believe this (only) if you will!
With validation of my function by an MVP, I figured all that's left is the
name. I changed it's name and it works.Created a new function named
"edudex"
and received the same error message. Tried different function names, they
all
work.

The function name is now "validator" (Edudex is a data validation system).

Hum, obviously, you did a global search on Edudex?

(you can also type in edudex in the debug window, and then hit shift-f2 (to
jump to the function).

I would try a global search for EduDex.....

Open up some code, and then go edit->find

Set the search option to "current project", so all forms an reports and
modules will be searched.

It very possible you have some reference to some object library also.....

It certainly not a reserved word, and I just tested the function name...it
worked fine for me...
 
T

Tom Ventouris

Thanks agin.

No other use of "edudex" found after global search.
Some action queries, EdudexMoreName, but nothing in the code.

Ribbon working fine. I am leaving this one unresolved since the name of the
function is not critical.
 
Top