Hi Anton,
I wonder it there is a way to add on toolbar the button for start some
program e.g. NOTEPAD.EXE (from folder Windows)?
programmatically?
Or is it just about the code to start an application
other than an office application,
though it would work with an office application, too.
For notepad, e.g.:
Sub Notepad()
Shell "c:\windows\notepad.exe", 1
End Sub
Then goto "tools, customize, commands".
In the left listbox scroll to "macros".
Locate your macro "notepad" in the right listbox.
Select it, drag it to a commandbar,
and drop it there.
Then right mouseclick and choose
"Default style"
Then right mouseclick and choose
"change button image"
or
"Edit button image"
then ;-)
have some fun, its endless.
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP