View Single Post
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

You'll need to write a macro that runs the calc.exe file. Then, you can
create a Toolbar Button for the macro.

I came up with this for the macro:

Sub WinCalculator()
Dim RetVal As Long
RetVal = Shell("C:\WINDOWS\System32\calc.exe", vbNormalFocus)
End Sub

You may have to alter the filepath to match where calc.exe is located on
your machine. You can right-click on the calculator icon, click properties to
find this info.

Then, in Word create a macro stored in Normal.dot . You can do this with
Tools | Macro. Then, type a new macro name (no spaces in macro names), and
click create. Paste this in the middle of the macro:

Dim RetVal As Long
RetVal = Shell("C:\WINDOWS\System32\calc.exe", vbNormalFocus)


Finally, Tools | Customize | Commands.
Find the macro category and drag a button for your macro to the Toolbar of
your choice. You use Modify command on the same dialog box to alter the
buttons image as necessary.

tj


"Traduc" wrote:

Rather than going through start, etc. - is there any way that the calculator
icon can be put on a toolbar?