K
kapusta117
Hello
I m working in ACCESS 2000 ...i m trying for the first time creating
Commanbar Menu..
WHEN i'm executing tHE vba code below (from a Macro) :
Public Function CreerMenu()
'
======================================================================================
' Auteur : Starec - Philippe JOCHMANS -
http://starec.developpez.com
' Description : Création d'une barre de menu
'=======================================================================================
' ==== déclaration =====
'Dim cmb As Office.CommandBars
' ===== affectation =====
' Set cmb = Application.CommandBars.Add("MaBarre", msoBarTop, True, True)
' ===== rendre la barre visible =====
'cmb.Application.Visible = True
' MsgBox "test"
End Function
I HAVE A MESSAGE ERROR Telling me that the expression has undefined function;
Although this function exist ( i tested
Public Function CreerMenu()
msgbox "TEST"
end function
launch this code by MACRO worked properly.
I HAVE TO MENTION that i 'm using Microsoft office 9.0 OBJECT that normaly
suit with ACCESS 2000
Thank you for you help
I m working in ACCESS 2000 ...i m trying for the first time creating
Commanbar Menu..
WHEN i'm executing tHE vba code below (from a Macro) :
Public Function CreerMenu()
'
======================================================================================
' Auteur : Starec - Philippe JOCHMANS -
http://starec.developpez.com
' Description : Création d'une barre de menu
'=======================================================================================
' ==== déclaration =====
'Dim cmb As Office.CommandBars
' ===== affectation =====
' Set cmb = Application.CommandBars.Add("MaBarre", msoBarTop, True, True)
' ===== rendre la barre visible =====
'cmb.Application.Visible = True
' MsgBox "test"
End Function
I HAVE A MESSAGE ERROR Telling me that the expression has undefined function;
Although this function exist ( i tested
Public Function CreerMenu()
msgbox "TEST"
end function
launch this code by MACRO worked properly.
I HAVE TO MENTION that i 'm using Microsoft office 9.0 OBJECT that normaly
suit with ACCESS 2000
Thank you for you help