Z
Zanetti
I create ribbon but i cant make him to work( if i press some button on ribbon
to open some form or report)
Here is a code.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="MyTab" label="Kalkulacije">
<group id="Kalkulacije" label="Kalkulacije">
<button id="NovaKalkulacija" imageMso="DatasheetView"
size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" />
<button id="StampajKalkulaciju" imageMso="FilePrint"
size="normal" label="Å tampaj Kalkulaciju" onAction = "ButtonCallback"/>
<button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal"
label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/>
<button id="pRkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregle
Kalkulaciju" onAction = "ButtonCallback"/>
</group>
<group id="TK" label="TrgovaÄka knjiga">
<button id="OtvoriTK" imageMso="FileOpen" size="large"
label="Otvori TrgovaÄku knjigu" onAction = "ButtonCallback"/>
<button id="StampajTK" imageMso="FilePrint" size="large"
label="Å tampaj TrgovaÄku knjigu" onAction = "ButtonCallback"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
i make code for Button Call back but i don't know where can i put him
here is code
Sub ButtonCallback(control As IRibbonControl)
Select Case control.ID
Case "OtvoriTK"
DoCmd.OpenForm "Tgovacka_knjiga"
Case "NovaKalkulacija"
MsgBox "TRT"
End Select
End Sub
Other problem is how can i put my own pictures into button instead access
pictures.
And how can i write help to show when mouse cursor is on the button.
TNX
to open some form or report)
Here is a code.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="MyTab" label="Kalkulacije">
<group id="Kalkulacije" label="Kalkulacije">
<button id="NovaKalkulacija" imageMso="DatasheetView"
size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" />
<button id="StampajKalkulaciju" imageMso="FilePrint"
size="normal" label="Å tampaj Kalkulaciju" onAction = "ButtonCallback"/>
<button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal"
label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/>
<button id="pRkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregle
Kalkulaciju" onAction = "ButtonCallback"/>
</group>
<group id="TK" label="TrgovaÄka knjiga">
<button id="OtvoriTK" imageMso="FileOpen" size="large"
label="Otvori TrgovaÄku knjigu" onAction = "ButtonCallback"/>
<button id="StampajTK" imageMso="FilePrint" size="large"
label="Å tampaj TrgovaÄku knjigu" onAction = "ButtonCallback"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
i make code for Button Call back but i don't know where can i put him
here is code
Sub ButtonCallback(control As IRibbonControl)
Select Case control.ID
Case "OtvoriTK"
DoCmd.OpenForm "Tgovacka_knjiga"
Case "NovaKalkulacija"
MsgBox "TRT"
End Select
End Sub
Other problem is how can i put my own pictures into button instead access
pictures.
And how can i write help to show when mouse cursor is on the button.
TNX