Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Sat, 28 Jan 2006 11:52:33 +0000,    group: microsoft.public.word.vba.customization        back       


Would like to display a picture button on toolbar   
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
-- 
Email (ROT13) 
abmmn_jnyrf4@lnubb.pb.hx
date: Sat, 28 Jan 2006 11:52:33 +0000   author:   Nozza

Re: Would like to display a picture button on toolbar   
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
-- 
Email (ROT13) 
abmmn_jnyrf4@lnubb.pb.hx
date: Sat, 28 Jan 2006 12:50:25 +0000   author:   Nozza

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us