Adding own icon to toolbar in powerpoint

D

d1491702

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
 
S

Steve Rindsberg

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top