PC Review


Reply
 
 
Paige
Guest
Posts: n/a
 
      7th Dec 2007
Have a workbook that creates a custom menu when the file is opened; if a user
opens another version of this same workbook, it deletes the menu already
there and recreates it again, to ensure the menu is only on the toolbar once
regardless of the # of workbooks open. Problem is that if I open File#1 and
then File#2, then close File#1, when I use the custom menu to do something,
it re-opens File#1, as if Excel thinks the macros called by the menu still
reside in File#1. I need it to look for the macros in the active workbook.
Have tried numerous things to fix this, but to no avail. The following sub
is called when the workbook is opened:

Sub CreateScheduleMenu()
Dim cmbBar As CommandBar
Dim cmbControl As CommandBarControl

Application.EnableEvents = True
Application.ScreenUpdating = True

On Error Resume Next
Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
On Error GoTo 0

With ActiveWorkbook
Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)

With cmbControl
.Caption = "Schedules"
With .Controls.Add(msoControlPopup)
.Caption = "For NCC/Pricer Use Only"
With .Controls.Add(msoControlPopup)
With .Controls.Add(Type:=msoControlButton)
.Caption = "Import from MMS Serv Form"
.OnAction = "GetDataFromMMSForm"
.FaceId = 301
End With
End With
End With
End With
End With
End Sub







 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      7th Dec 2007
Hi Paige,

Haven't tested this but instead of With ActiveWorkbook try With
ThisWorkbook. It is possible that the wrong workbook is the active one at the
time the macro runs.

--
Regards,

OssieMac


"Paige" wrote:

> Have a workbook that creates a custom menu when the file is opened; if a user
> opens another version of this same workbook, it deletes the menu already
> there and recreates it again, to ensure the menu is only on the toolbar once
> regardless of the # of workbooks open. Problem is that if I open File#1 and
> then File#2, then close File#1, when I use the custom menu to do something,
> it re-opens File#1, as if Excel thinks the macros called by the menu still
> reside in File#1. I need it to look for the macros in the active workbook.
> Have tried numerous things to fix this, but to no avail. The following sub
> is called when the workbook is opened:
>
> Sub CreateScheduleMenu()
> Dim cmbBar As CommandBar
> Dim cmbControl As CommandBarControl
>
> Application.EnableEvents = True
> Application.ScreenUpdating = True
>
> On Error Resume Next
> Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> On Error GoTo 0
>
> With ActiveWorkbook
> Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
>
> With cmbControl
> .Caption = "Schedules"
> With .Controls.Add(msoControlPopup)
> .Caption = "For NCC/Pricer Use Only"
> With .Controls.Add(msoControlPopup)
> With .Controls.Add(Type:=msoControlButton)
> .Caption = "Import from MMS Serv Form"
> .OnAction = "GetDataFromMMSForm"
> .FaceId = 301
> End With
> End With
> End With
> End With
> End With
> End Sub
>
>
>
>
>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th Dec 2007
This may not work for you, but I think it's best to separate the toolbar (and
its macros) into a different workbook (or addin).

Then just one version of the code will be necessary (making updates lots
easier). And each workbook won't try to modify the toolbar again (and again
....)



Paige wrote:
>
> Have a workbook that creates a custom menu when the file is opened; if a user
> opens another version of this same workbook, it deletes the menu already
> there and recreates it again, to ensure the menu is only on the toolbar once
> regardless of the # of workbooks open. Problem is that if I open File#1 and
> then File#2, then close File#1, when I use the custom menu to do something,
> it re-opens File#1, as if Excel thinks the macros called by the menu still
> reside in File#1. I need it to look for the macros in the active workbook.
> Have tried numerous things to fix this, but to no avail. The following sub
> is called when the workbook is opened:
>
> Sub CreateScheduleMenu()
> Dim cmbBar As CommandBar
> Dim cmbControl As CommandBarControl
>
> Application.EnableEvents = True
> Application.ScreenUpdating = True
>
> On Error Resume Next
> Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> On Error GoTo 0
>
> With ActiveWorkbook
> Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
>
> With cmbControl
> .Caption = "Schedules"
> With .Controls.Add(msoControlPopup)
> .Caption = "For NCC/Pricer Use Only"
> With .Controls.Add(msoControlPopup)
> With .Controls.Add(Type:=msoControlButton)
> .Caption = "Import from MMS Serv Form"
> .OnAction = "GetDataFromMMSForm"
> .FaceId = 301
> End With
> End With
> End With
> End With
> End With
> End Sub


--

Dave Peterson
 
Reply With Quote
 
Paige
Guest
Posts: n/a
 
      7th Dec 2007
Thanks, Ossie. Tried this and it still doesn't work. If you have any other
ideas, would appreciate them!

"OssieMac" wrote:

> Hi Paige,
>
> Haven't tested this but instead of With ActiveWorkbook try With
> ThisWorkbook. It is possible that the wrong workbook is the active one at the
> time the macro runs.
>
> --
> Regards,
>
> OssieMac
>
>
> "Paige" wrote:
>
> > Have a workbook that creates a custom menu when the file is opened; if a user
> > opens another version of this same workbook, it deletes the menu already
> > there and recreates it again, to ensure the menu is only on the toolbar once
> > regardless of the # of workbooks open. Problem is that if I open File#1 and
> > then File#2, then close File#1, when I use the custom menu to do something,
> > it re-opens File#1, as if Excel thinks the macros called by the menu still
> > reside in File#1. I need it to look for the macros in the active workbook.
> > Have tried numerous things to fix this, but to no avail. The following sub
> > is called when the workbook is opened:
> >
> > Sub CreateScheduleMenu()
> > Dim cmbBar As CommandBar
> > Dim cmbControl As CommandBarControl
> >
> > Application.EnableEvents = True
> > Application.ScreenUpdating = True
> >
> > On Error Resume Next
> > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> > On Error GoTo 0
> >
> > With ActiveWorkbook
> > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> >
> > With cmbControl
> > .Caption = "Schedules"
> > With .Controls.Add(msoControlPopup)
> > .Caption = "For NCC/Pricer Use Only"
> > With .Controls.Add(msoControlPopup)
> > With .Controls.Add(Type:=msoControlButton)
> > .Caption = "Import from MMS Serv Form"
> > .OnAction = "GetDataFromMMSForm"
> > .FaceId = 301
> > End With
> > End With
> > End With
> > End With
> > End With
> > End Sub
> >
> >
> >
> >
> >
> >
> >

 
Reply With Quote
 
OssieMac
Guest
Posts: n/a
 
      7th Dec 2007
Sorry Paige but I haven't got any other ideas.
--
Regards,

OssieMac


"Paige" wrote:

> Thanks, Ossie. Tried this and it still doesn't work. If you have any other
> ideas, would appreciate them!
>
> "OssieMac" wrote:
>
> > Hi Paige,
> >
> > Haven't tested this but instead of With ActiveWorkbook try With
> > ThisWorkbook. It is possible that the wrong workbook is the active one at the
> > time the macro runs.
> >
> > --
> > Regards,
> >
> > OssieMac
> >
> >
> > "Paige" wrote:
> >
> > > Have a workbook that creates a custom menu when the file is opened; if a user
> > > opens another version of this same workbook, it deletes the menu already
> > > there and recreates it again, to ensure the menu is only on the toolbar once
> > > regardless of the # of workbooks open. Problem is that if I open File#1 and
> > > then File#2, then close File#1, when I use the custom menu to do something,
> > > it re-opens File#1, as if Excel thinks the macros called by the menu still
> > > reside in File#1. I need it to look for the macros in the active workbook.
> > > Have tried numerous things to fix this, but to no avail. The following sub
> > > is called when the workbook is opened:
> > >
> > > Sub CreateScheduleMenu()
> > > Dim cmbBar As CommandBar
> > > Dim cmbControl As CommandBarControl
> > >
> > > Application.EnableEvents = True
> > > Application.ScreenUpdating = True
> > >
> > > On Error Resume Next
> > > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> > > On Error GoTo 0
> > >
> > > With ActiveWorkbook
> > > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> > > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> > >
> > > With cmbControl
> > > .Caption = "Schedules"
> > > With .Controls.Add(msoControlPopup)
> > > .Caption = "For NCC/Pricer Use Only"
> > > With .Controls.Add(msoControlPopup)
> > > With .Controls.Add(Type:=msoControlButton)
> > > .Caption = "Import from MMS Serv Form"
> > > .OnAction = "GetDataFromMMSForm"
> > > .FaceId = 301
> > > End With
> > > End With
> > > End With
> > > End With
> > > End With
> > > End Sub
> > >
> > >
> > >
> > >
> > >
> > >
> > >

 
Reply With Quote
 
Paige
Guest
Posts: n/a
 
      9th Dec 2007
Thanks, Dave. At least I know I'm not crazy! I tried moving the
deletion/creation of the toolbar to workbook_activate, which worked, but I
don't think that is the most esthetically pleasing solution, or efficient.
So based upon your input, have decided to put it into the Personal.xls
workbook. That should work. Thanks again to everyone!

"Dave Peterson" wrote:

> This may not work for you, but I think it's best to separate the toolbar (and
> its macros) into a different workbook (or addin).
>
> Then just one version of the code will be necessary (making updates lots
> easier). And each workbook won't try to modify the toolbar again (and again
> ....)
>
>
>
> Paige wrote:
> >
> > Have a workbook that creates a custom menu when the file is opened; if a user
> > opens another version of this same workbook, it deletes the menu already
> > there and recreates it again, to ensure the menu is only on the toolbar once
> > regardless of the # of workbooks open. Problem is that if I open File#1 and
> > then File#2, then close File#1, when I use the custom menu to do something,
> > it re-opens File#1, as if Excel thinks the macros called by the menu still
> > reside in File#1. I need it to look for the macros in the active workbook.
> > Have tried numerous things to fix this, but to no avail. The following sub
> > is called when the workbook is opened:
> >
> > Sub CreateScheduleMenu()
> > Dim cmbBar As CommandBar
> > Dim cmbControl As CommandBarControl
> >
> > Application.EnableEvents = True
> > Application.ScreenUpdating = True
> >
> > On Error Resume Next
> > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> > On Error GoTo 0
> >
> > With ActiveWorkbook
> > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> >
> > With cmbControl
> > .Caption = "Schedules"
> > With .Controls.Add(msoControlPopup)
> > .Caption = "For NCC/Pricer Use Only"
> > With .Controls.Add(msoControlPopup)
> > With .Controls.Add(Type:=msoControlButton)
> > .Caption = "Import from MMS Serv Form"
> > .OnAction = "GetDataFromMMSForm"
> > .FaceId = 301
> > End With
> > End With
> > End With
> > End With
> > End With
> > End Sub

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      9th Dec 2007
For something like this -- a dedicated set of macros, I'd use a dedicated
workbook or addin.

I wouldn't clutter up my personal workbook with this.

It would make it easier to share with others, too.

Paige wrote:
>
> Thanks, Dave. At least I know I'm not crazy! I tried moving the
> deletion/creation of the toolbar to workbook_activate, which worked, but I
> don't think that is the most esthetically pleasing solution, or efficient.
> So based upon your input, have decided to put it into the Personal.xls
> workbook. That should work. Thanks again to everyone!
>
> "Dave Peterson" wrote:
>
> > This may not work for you, but I think it's best to separate the toolbar (and
> > its macros) into a different workbook (or addin).
> >
> > Then just one version of the code will be necessary (making updates lots
> > easier). And each workbook won't try to modify the toolbar again (and again
> > ....)
> >
> >
> >
> > Paige wrote:
> > >
> > > Have a workbook that creates a custom menu when the file is opened; if a user
> > > opens another version of this same workbook, it deletes the menu already
> > > there and recreates it again, to ensure the menu is only on the toolbar once
> > > regardless of the # of workbooks open. Problem is that if I open File#1 and
> > > then File#2, then close File#1, when I use the custom menu to do something,
> > > it re-opens File#1, as if Excel thinks the macros called by the menu still
> > > reside in File#1. I need it to look for the macros in the active workbook.
> > > Have tried numerous things to fix this, but to no avail. The following sub
> > > is called when the workbook is opened:
> > >
> > > Sub CreateScheduleMenu()
> > > Dim cmbBar As CommandBar
> > > Dim cmbControl As CommandBarControl
> > >
> > > Application.EnableEvents = True
> > > Application.ScreenUpdating = True
> > >
> > > On Error Resume Next
> > > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> > > On Error GoTo 0
> > >
> > > With ActiveWorkbook
> > > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> > > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> > >
> > > With cmbControl
> > > .Caption = "Schedules"
> > > With .Controls.Add(msoControlPopup)
> > > .Caption = "For NCC/Pricer Use Only"
> > > With .Controls.Add(msoControlPopup)
> > > With .Controls.Add(Type:=msoControlButton)
> > > .Caption = "Import from MMS Serv Form"
> > > .OnAction = "GetDataFromMMSForm"
> > > .FaceId = 301
> > > End With
> > > End With
> > > End With
> > > End With
> > > End With
> > > End Sub

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
Paige
Guest
Posts: n/a
 
      10th Dec 2007
Dave, if you use a dedicated workbook, do you have it automatically open when
the original workbook is opened, and just hide it?

"Dave Peterson" wrote:

> For something like this -- a dedicated set of macros, I'd use a dedicated
> workbook or addin.
>
> I wouldn't clutter up my personal workbook with this.
>
> It would make it easier to share with others, too.
>
> Paige wrote:
> >
> > Thanks, Dave. At least I know I'm not crazy! I tried moving the
> > deletion/creation of the toolbar to workbook_activate, which worked, but I
> > don't think that is the most esthetically pleasing solution, or efficient.
> > So based upon your input, have decided to put it into the Personal.xls
> > workbook. That should work. Thanks again to everyone!
> >
> > "Dave Peterson" wrote:
> >
> > > This may not work for you, but I think it's best to separate the toolbar (and
> > > its macros) into a different workbook (or addin).
> > >
> > > Then just one version of the code will be necessary (making updates lots
> > > easier). And each workbook won't try to modify the toolbar again (and again
> > > ....)
> > >
> > >
> > >
> > > Paige wrote:
> > > >
> > > > Have a workbook that creates a custom menu when the file is opened; if a user
> > > > opens another version of this same workbook, it deletes the menu already
> > > > there and recreates it again, to ensure the menu is only on the toolbar once
> > > > regardless of the # of workbooks open. Problem is that if I open File#1 and
> > > > then File#2, then close File#1, when I use the custom menu to do something,
> > > > it re-opens File#1, as if Excel thinks the macros called by the menu still
> > > > reside in File#1. I need it to look for the macros in the active workbook.
> > > > Have tried numerous things to fix this, but to no avail. The following sub
> > > > is called when the workbook is opened:
> > > >
> > > > Sub CreateScheduleMenu()
> > > > Dim cmbBar As CommandBar
> > > > Dim cmbControl As CommandBarControl
> > > >
> > > > Application.EnableEvents = True
> > > > Application.ScreenUpdating = True
> > > >
> > > > On Error Resume Next
> > > > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> > > > On Error GoTo 0
> > > >
> > > > With ActiveWorkbook
> > > > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> > > > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> > > >
> > > > With cmbControl
> > > > .Caption = "Schedules"
> > > > With .Controls.Add(msoControlPopup)
> > > > .Caption = "For NCC/Pricer Use Only"
> > > > With .Controls.Add(msoControlPopup)
> > > > With .Controls.Add(Type:=msoControlButton)
> > > > .Caption = "Import from MMS Serv Form"
> > > > .OnAction = "GetDataFromMMSForm"
> > > > .FaceId = 301
> > > > End With
> > > > End With
> > > > End With
> > > > End With
> > > > End With
> > > > End Sub
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th Dec 2007
Save the dedicated workbook as an add-in as Dave suggests.

Load it through Tools>Add-ins and it will be available and hidden.


Gord Dibben MS Excel MVP

On Sun, 9 Dec 2007 16:16:01 -0800, Paige <(E-Mail Removed)>
wrote:

>Dave, if you use a dedicated workbook, do you have it automatically open when
>the original workbook is opened, and just hide it?
>
>"Dave Peterson" wrote:
>
>> For something like this -- a dedicated set of macros, I'd use a dedicated
>> workbook or addin.
>>
>> I wouldn't clutter up my personal workbook with this.
>>
>> It would make it easier to share with others, too.
>>
>> Paige wrote:
>> >
>> > Thanks, Dave. At least I know I'm not crazy! I tried moving the
>> > deletion/creation of the toolbar to workbook_activate, which worked, but I
>> > don't think that is the most esthetically pleasing solution, or efficient.
>> > So based upon your input, have decided to put it into the Personal.xls
>> > workbook. That should work. Thanks again to everyone!
>> >
>> > "Dave Peterson" wrote:
>> >
>> > > This may not work for you, but I think it's best to separate the toolbar (and
>> > > its macros) into a different workbook (or addin).
>> > >
>> > > Then just one version of the code will be necessary (making updates lots
>> > > easier). And each workbook won't try to modify the toolbar again (and again
>> > > ....)
>> > >
>> > >
>> > >
>> > > Paige wrote:
>> > > >
>> > > > Have a workbook that creates a custom menu when the file is opened; if a user
>> > > > opens another version of this same workbook, it deletes the menu already
>> > > > there and recreates it again, to ensure the menu is only on the toolbar once
>> > > > regardless of the # of workbooks open. Problem is that if I open File#1 and
>> > > > then File#2, then close File#1, when I use the custom menu to do something,
>> > > > it re-opens File#1, as if Excel thinks the macros called by the menu still
>> > > > reside in File#1. I need it to look for the macros in the active workbook.
>> > > > Have tried numerous things to fix this, but to no avail. The following sub
>> > > > is called when the workbook is opened:
>> > > >
>> > > > Sub CreateScheduleMenu()
>> > > > Dim cmbBar As CommandBar
>> > > > Dim cmbControl As CommandBarControl
>> > > >
>> > > > Application.EnableEvents = True
>> > > > Application.ScreenUpdating = True
>> > > >
>> > > > On Error Resume Next
>> > > > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
>> > > > On Error GoTo 0
>> > > >
>> > > > With ActiveWorkbook
>> > > > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
>> > > > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
>> > > >
>> > > > With cmbControl
>> > > > .Caption = "Schedules"
>> > > > With .Controls.Add(msoControlPopup)
>> > > > .Caption = "For NCC/Pricer Use Only"
>> > > > With .Controls.Add(msoControlPopup)
>> > > > With .Controls.Add(Type:=msoControlButton)
>> > > > .Caption = "Import from MMS Serv Form"
>> > > > .OnAction = "GetDataFromMMSForm"
>> > > > .FaceId = 301
>> > > > End With
>> > > > End With
>> > > > End With
>> > > > End With
>> > > > End With
>> > > > End Sub
>> > >
>> > > --
>> > >
>> > > Dave Peterson
>> > >

>>
>> --
>>
>> Dave Peterson
>>


 
Reply With Quote
 
Paige
Guest
Posts: n/a
 
      10th Dec 2007
Thanks, Gord!

"Gord Dibben" wrote:

> Save the dedicated workbook as an add-in as Dave suggests.
>
> Load it through Tools>Add-ins and it will be available and hidden.
>
>
> Gord Dibben MS Excel MVP
>
> On Sun, 9 Dec 2007 16:16:01 -0800, Paige <(E-Mail Removed)>
> wrote:
>
> >Dave, if you use a dedicated workbook, do you have it automatically open when
> >the original workbook is opened, and just hide it?
> >
> >"Dave Peterson" wrote:
> >
> >> For something like this -- a dedicated set of macros, I'd use a dedicated
> >> workbook or addin.
> >>
> >> I wouldn't clutter up my personal workbook with this.
> >>
> >> It would make it easier to share with others, too.
> >>
> >> Paige wrote:
> >> >
> >> > Thanks, Dave. At least I know I'm not crazy! I tried moving the
> >> > deletion/creation of the toolbar to workbook_activate, which worked, but I
> >> > don't think that is the most esthetically pleasing solution, or efficient.
> >> > So based upon your input, have decided to put it into the Personal.xls
> >> > workbook. That should work. Thanks again to everyone!
> >> >
> >> > "Dave Peterson" wrote:
> >> >
> >> > > This may not work for you, but I think it's best to separate the toolbar (and
> >> > > its macros) into a different workbook (or addin).
> >> > >
> >> > > Then just one version of the code will be necessary (making updates lots
> >> > > easier). And each workbook won't try to modify the toolbar again (and again
> >> > > ....)
> >> > >
> >> > >
> >> > >
> >> > > Paige wrote:
> >> > > >
> >> > > > Have a workbook that creates a custom menu when the file is opened; if a user
> >> > > > opens another version of this same workbook, it deletes the menu already
> >> > > > there and recreates it again, to ensure the menu is only on the toolbar once
> >> > > > regardless of the # of workbooks open. Problem is that if I open File#1 and
> >> > > > then File#2, then close File#1, when I use the custom menu to do something,
> >> > > > it re-opens File#1, as if Excel thinks the macros called by the menu still
> >> > > > reside in File#1. I need it to look for the macros in the active workbook.
> >> > > > Have tried numerous things to fix this, but to no avail. The following sub
> >> > > > is called when the workbook is opened:
> >> > > >
> >> > > > Sub CreateScheduleMenu()
> >> > > > Dim cmbBar As CommandBar
> >> > > > Dim cmbControl As CommandBarControl
> >> > > >
> >> > > > Application.EnableEvents = True
> >> > > > Application.ScreenUpdating = True
> >> > > >
> >> > > > On Error Resume Next
> >> > > > Application.CommandBars("Worksheet Menu Bar").Controls("Schedules").Delete
> >> > > > On Error GoTo 0
> >> > > >
> >> > > > With ActiveWorkbook
> >> > > > Set cmbBar = Application.CommandBars("Worksheet Menu Bar")
> >> > > > Set cmbControl = cmbBar.Controls.Add(Type:=msoControlPopup, temporary:=True)
> >> > > >
> >> > > > With cmbControl
> >> > > > .Caption = "Schedules"
> >> > > > With .Controls.Add(msoControlPopup)
> >> > > > .Caption = "For NCC/Pricer Use Only"
> >> > > > With .Controls.Add(msoControlPopup)
> >> > > > With .Controls.Add(Type:=msoControlButton)
> >> > > > .Caption = "Import from MMS Serv Form"
> >> > > > .OnAction = "GetDataFromMMSForm"
> >> > > > .FaceId = 301
> >> > > > End With
> >> > > > End With
> >> > > > End With
> >> > > > End With
> >> > > > End With
> >> > > > End Sub
> >> > >
> >> > > --
> >> > >
> >> > > Dave Peterson
> >> > >
> >>
> >> --
> >>
> >> Dave Peterson
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete specific menu item from custom menu Tim Microsoft Excel Programming 2 11th Mar 2008 12:45 PM
Custom Context menu (Right click menu) not working in sheet changeevent. Madiya Microsoft Excel Programming 3 11th Feb 2008 01:24 PM
Not able to call a function from custom menu item that is added in word menu(File) jayrm100@yahoo.com Microsoft Word Document Management 0 9th Nov 2005 05:36 AM
Adding Custom menu items in the File Menu mookashi Microsoft Outlook VBA Programming 8 11th Mar 2004 07:55 AM
Custom Popup menu in custom control and powerpoint Rajesh Microsoft Powerpoint 1 1st Mar 2004 01:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:30 AM.