joemajestee
Programmer
Hi all.
I have a word 2003 file menu item that I would like to be made available to all users in my network. Also, I would like to have new users get it when I am not there to set it up manually.
Any suggestions?
I have knowledge of login scripts and default file locations, if that helps. Also the default user profile is saved in netlogon so everyone gets the same one.
If it helps, here is the simple code. Not sure where to put it, right now it's in normal.dot in the thisdocument area. As it stands, the item is not there until I create a new document, although I would like it to be there always.
I have a word 2003 file menu item that I would like to be made available to all users in my network. Also, I would like to have new users get it when I am not there to set it up manually.
Any suggestions?
I have knowledge of login scripts and default file locations, if that helps. Also the default user profile is saved in netlogon so everyone gets the same one.
If it helps, here is the simple code. Not sure where to put it, right now it's in normal.dot in the thisdocument area. As it stands, the item is not there until I create a new document, although I would like it to be there always.
Code:
Private Sub Document_New()
On Error Resume Next
SetUpNewLeaseItemOnFileMenu
End Sub
Private Sub Document_Close()
On Error Resume Next
RemoveNewLeaseFromFileMenu
End Sub
Sub SetUpNewLeaseItemOnFileMenu()
Dim FileMenu As CommandBar, MenuItem As Object
Set FileMenu = CommandBars("File")
With FileMenu.Controls
Set MenuItem = .Add(Type:=msoControlButton, Before:=2)
With MenuItem
.Caption = "New Lease"
.OnAction = "NewLease"
End With
End With
End Sub