Hey. Just wanted to know does anyone know how to add an icon to the
toolbar in Powerpoint 2003. I need the icon to open a .NET desktop
application I created when it is clicked. I saw a post about adding an
icon that when clicked formats font, but how would I get it to Open an
application.
I would be very grateful for any advice you can give me.
Thanks.
Laura
> Hey. Just wanted to know does anyone know how to add an icon to the
> toolbar in Powerpoint 2003. I need the icon to open a .NET desktop
> application I created when it is clicked. I saw a post about adding an
> icon that when clicked formats font, but how would I get it to Open an
> application.
Check here for info on creating addins, toolbars, buttons:
Creating and Installing Add-ins, Toolbars, Buttons
http://www.pptfaq.com/index.html#name_Creating_and_Installing_Add-ins-_Toolbars
-_Buttons_
To launch the application, assuming you know the full path to the exe:
Sub FireMeUp()
Dim lRet as Long
Dim sPathToExe as String
' Edit this as needed
sPathToExe = "C:\somefolder\somewhere\MyProggie.EXE"
lRet = Shell(sPathToExe, vbaNormalFocus)
If lRet = 0 Then
' there was a problem launching the file
' deal with it here if you wish
MsgBox "Ooopsie. That was no fun!"
End If
End Sub
Have a look here too:
ShellExecute Example
http://www.pptfaq.com/FAQ00479.htm
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================