How can I put a calculator icon on my toolbar?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Rather than going through start, etc. - is there any way that the calculator
icon can be put on a toolbar?
 
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
 
I have to admit that I'm curious as to why you just don't add a Shortcut to
the Calculator to the Quick Launch Bar on the Windows Task Bar. Or, put the
shortcut closer to the beginning of the Start menu.

tj
 
1. Right-Click your toolbar and click Customize.
2. The customize toolbar dialog appears. Click the Commands tab.
3. Drag *any command* to your toolbar and position it where you want it.
4. With the dialog still open, right-click your new button and click
Properties
5. You get a properties dialog that lets you customize everything about the
button
6. Specifically, in the On Action, put this: = Shell("Calc.exe")
 
Back
Top