Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / February 2007

Tip: Looking for answers? Try searching our database.

Adding own icon to toolbar in powerpoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
d1491702@qub.ac.uk - 22 Feb 2007 15:19 GMT
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
Steve Rindsberg - 22 Feb 2007 16:00 GMT
> 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
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.