Thema Datum  Von Nutzer Rating
Antwort
30.03.2011 14:24:07 MV
Solved
30.03.2011 14:49:45 Severus
NotSolved
30.03.2011 15:03:04 Gast50387
NotSolved
30.03.2011 18:11:25 Severus
NotSolved
30.03.2011 20:55:40 MV
NotSolved
31.03.2011 07:46:51 MV
NotSolved
31.03.2011 08:03:06 MV
NotSolved
Blau Problem mit msoControlPopup
31.03.2011 08:39:19 Severus
NotSolved
31.03.2011 08:43:39 MV
NotSolved
31.03.2011 09:03:53 Severus
NotSolved
31.03.2011 09:09:51 MV
NotSolved
31.03.2011 09:26:36 MV
NotSolved
31.03.2011 09:32:55 Severus
NotSolved
31.03.2011 11:09:48 MV
Solved
31.03.2011 16:00:45 Severus
NotSolved

Ansicht des Beitrags:
Von:
Severus
Datum:
31.03.2011 08:39:19
Views:
1156
Rating: Antwort:
  Ja
Thema:
Problem mit msoControlPopup

Irgendwie scheint mir, Du machst das ganze unnötig kompliziert. Es muß doch ein Modul geben, in dem Deine Prozeduren stehen. Nehmen wir mal an, das ist "Modul1" mit den Prozeduren "Import", "Export" und "AuswertungDrucken". Dann sähe das Ganze etwa so aus:

Private Sub Workbook_Open()
On Error Resume Next
With Application.CommandBars("Worksheet Menu Bar")
     .Controls.Add Type:=msoControlPopup, before:=.Controls.Count - 1
     With .Controls(.Controls.Count - 2)
          .Caption = "&Auswertung"
          .Controls.Add Type:=msoControlButton, before:=1
          .Controls.Add Type:=msoControlButton, before:=2
          .Controls.Add Type:=msoControlButton, before:=3
            With .Controls(1)
                .Caption = "&Fehleranalyse"
                .OnAction = "Import"
                .BeginGroup = False
                .FaceId = 1096
            End With
            With .Controls(2)
                .Caption = "&Auswertungsdatei erstellen"
                .OnAction = "Export"
                .BeginGroup = True
                .FaceId = 159
            End With
            With .Controls(3)
                 .BeginGroup = True
                .FaceId = 160
                .Caption = "Auswertungsdatei(en) &Drucken"
                .OnAction = "AuswertungDrucken"
            End With
End With
End Sub


Private Sub Workbook_Activate()
Application.CommandBars("Worksheet Menu Bar").Controls("&Auswertung").Visible = True
End Sub


Private Sub Workbook_Deactivate()
Application.CommandBars("Worksheet Menu Bar").Controls("&Auswertung").Visible = False
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Worksheet Menu Bar").Controls("&Auswertung").Delete
End Sub

 


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
30.03.2011 14:24:07 MV
Solved
30.03.2011 14:49:45 Severus
NotSolved
30.03.2011 15:03:04 Gast50387
NotSolved
30.03.2011 18:11:25 Severus
NotSolved
30.03.2011 20:55:40 MV
NotSolved
31.03.2011 07:46:51 MV
NotSolved
31.03.2011 08:03:06 MV
NotSolved
Blau Problem mit msoControlPopup
31.03.2011 08:39:19 Severus
NotSolved
31.03.2011 08:43:39 MV
NotSolved
31.03.2011 09:03:53 Severus
NotSolved
31.03.2011 09:09:51 MV
NotSolved
31.03.2011 09:26:36 MV
NotSolved
31.03.2011 09:32:55 Severus
NotSolved
31.03.2011 11:09:48 MV
Solved
31.03.2011 16:00:45 Severus
NotSolved