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 / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Would like to display a picture button on toolbar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nozza - 28 Jan 2006 11:52 GMT
I have a Macro named InsertLatestJPG - it looks in a folder for the
most recent saved picture and pastes it into the current document.

I have added the Macro to the toolbar, but the text InsertLatestJPG is
displayed on the front of the button. I would rather the button was a
small picture of something.

How do I customize the menu to display a picture instead of the macro
name?

Many thanks

Nozza

For info

Sub InsertLastestJPG()
'
' InsertLatestJPG Macro
' Macro written 28/1/2006 by Nozza

   MyPath = "H:\grabs\grab*.jpg"
   MyName = Dir(MyPath)
   FileToLoad = MyName
   
   Do While MyName <> ""
       If MyName > FileToLoad Then
           FileToLoad = MyName
       End If
       MyName = Dir
   Loop
   Selection.InlineShapes.AddPicture FileName:="C:\ScreenGrabs\" &
FileToLoad, _
       LinkToFile:=False, SaveWithDocument:=True
   
End Sub
Signature

Email (ROT13)
abmmn_jnyrf4@lnubb.pb.hx

Nozza - 28 Jan 2006 12:50 GMT
Sussed it!

Go to the customize menu for the toolbar, and with the customize menu
showing, right click on the button in the toolbar (not in the
customize box).

Noz
Signature

Email (ROT13)
abmmn_jnyrf4@lnubb.pb.hx

 
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.