Button to launch external program? Excel functionality?

M

maxxwizard

Is there a way to make a button that launches the windows calculator?

Is there a way to have some excel functionality in an infopath form? The old
form was created in excel and many users liked excel's features such as
entering formulas, checking sums by highlighting multiple cells, etc...

Thanks in advance for any information.
 
S

S.Y.M. Wong-A-Ton

Put the following JScript code in the OnClick event of a button to launch the
windows calculator:

var objShell = new ActiveXObject("WScript.Shell");
objShell.Run("calc");

If you want to have Excel functionality in InfoPath, you'll have to recreate
it yourself with what's available in InfoPath, but you'll still be very
limited in what you can do in InfoPath compared to Excel. InfoPath is
primarily a "forms" tool, unlike Excel which is a "calculation/spreadsheet"
tool.
 
Top