[mso] XL2K Auto_Load Toolbar button

  • From: "April Pace" <4office@xxxxxxxxxxxxx>
  • To: "Office (E-mail)" <mso@xxxxxxxxxxxxx>
  • Date: Thu, 16 Jan 2003 13:52:33 -0500

Can I create a macro, that when a particular file is open that a Toolbar
button is added (it is linked to another macro) to the toolbar and removed
then the file is closed.


I tried recording the steps to create the button, name it, and assigned it
to the macro "EnterGrades"  This is all it recorded:

Sub Auto_load()
'
' Auto_load Macro
' Macro recorded 1/16/2003 by  April Pace
'

'
    Application.CommandBars("Formatting").Controls.Add
Type:=msoControlButton, _
        ID:=2950, Before:=22
End Sub


How do I get it to also, add the text (always and only show) "Enter Grades"
and assign it to the macro "EnterGrade"?

April


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx?Subject=unsubscribe

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: