Sub testUIUI()
Dim XmLdoC, TabS, XtaB, grouP, XbuttoN, Nom$, I&, TheUserProfil As String
TheUserProfil = Environ("userprofile")
Set XmLdoC = createXMLbase
Set TabS = XmLdoC.getelementsbytagname("tabs")(0)
'<group id="Group_1" label="GROUPETEST" imageMso="FormulaMoreFunctionsMenu" autoScale="true">
'creation de l'onglet
Set XtaB = TabS.appendchild(XmLdoC.createelement("tab"))
With XtaB: .setattribute "id", "tab1": .setattribute "label", "INDEX": End With
'creation du premier groupe
Set grouP = XtaB.appendchild(XmLdoC.createelement("group"))
With grouP: .setattribute "id", "group1": .setattribute "label", "MACROS": End With
'<button id="x1" label="test1" imageMso="ListMacros" onAction="test1" visible="true"/>
Set XbuttoN = grouP.appendchild(XmLdoC.createelement("button"))
With XbuttoN
.setattribute "id", "x1"
.setattribute "label", "CORR FOLIOS"
.setattribute "imageMso", "Clear"
.setattribute "onAction", TheUserProfil & "\Documents\MACROS COMPLEMENTS\MACROS INDEX\INDEX MACROS V2.xlam!CorrComaDashSpace"
.setattribute "visible", "true"
.setattribute "size", "large"
End With
'<button id="x2" label="test2" imageMso="ListMacros" onAction="test2" visible="true"/>
Set XbuttoN = grouP.appendchild(XmLdoC.createelement("button"))
With XbuttoN
.setattribute "id", "x2"
.setattribute "label", "FAMILIES"
.setattribute "imageMso", "ListMacros"
.setattribute "onAction", TheUserProfil & "\Documents\MACROS COMPLEMENTS\MACROS INDEX\INDEX MACROS V2.xlam!Family"
.setattribute "visible", "true"
.setattribute "size", "large"
End With
'<button id="x3" label="test3" imageMso="ListMacros" onAction="test3" visible="true"/>
Set XbuttoN = grouP.appendchild(XmLdoC.createelement("button"))
With XbuttoN
.setattribute "id", "x3"
.setattribute "label", "CHANGE FOLIOS"
.setattribute "imageMso", "TableSelect"
.setattribute "onAction", TheUserProfil & "\Documents\MACROS COMPLEMENTS\MACROS INDEX\INDEX MACROS V2.xlam!ParamChangeFolios"
.setattribute "visible", "true"
.setattribute "size", "large"
End With
'<button id="x4" label="test4" imageMso="ListMacros" onAction="test4" visible="true"/>
Set XbuttoN = grouP.appendchild(XmLdoC.createelement("button"))
With XbuttoN
.setattribute "id", "x4"
.setattribute "label", "CHANGE FOLIOS BY SELECTION"
.setattribute "imageMso", "Bullets"
.setattribute "onAction", TheUserProfil & "Documents\MACROS COMPLEMENTS\MACROS INDEX\INDEX MACROS V2.xlam!SelectParaChangeFolios"
.setattribute "visible", "true"
.setattribute "size", "large"
End With
Nom = Environ("userprofile") & "\AppData\Local\Microsoft\Office\Excel.officeUI"
I = FreeFile
Open Nom For Output As #I: Print #I, XmLdoC.XML: Close #I
End Sub