T
Topper
Hello.
I use MS Word server into my Outlook form.
Word replace Outlook command bars by own.
I add my CommandBar with button.
Outlook custom form code example:
'-------------------------------
'get the current command bars
Set oComBars = oWordDoc.Application.CommandBars
' add custom command bar
Set mb = oComBars.Add("My Command Bar", 1, false, true)
mb.Visible = true
'add custom button to our bar
Set btn = mb.Controls.Add
'Set properties
btn.Caption = "Click Me"
btn.BeginGroup = true
'NEEDS TO PROCESS IN OUTLLOK CODE
btn.onAction = "OnClickMe_Click"
btn.TooltipText = "Click Me!!"
btn.Style = 3
btn.FaceId = 250
btn.OLEUsage = nMSOControlOLEUsageClient ' equal 2
'---------------------------------------
When i'm clicking on my button Word catch this action, but Outlook is not
=((
Anybody knows how to process CommandButton action on the client in my case?
Thank u.
I use MS Word server into my Outlook form.
Word replace Outlook command bars by own.
I add my CommandBar with button.
Outlook custom form code example:
'-------------------------------
'get the current command bars
Set oComBars = oWordDoc.Application.CommandBars
' add custom command bar
Set mb = oComBars.Add("My Command Bar", 1, false, true)
mb.Visible = true
'add custom button to our bar
Set btn = mb.Controls.Add
'Set properties
btn.Caption = "Click Me"
btn.BeginGroup = true
'NEEDS TO PROCESS IN OUTLLOK CODE
btn.onAction = "OnClickMe_Click"
btn.TooltipText = "Click Me!!"
btn.Style = 3
btn.FaceId = 250
btn.OLEUsage = nMSOControlOLEUsageClient ' equal 2
'---------------------------------------
When i'm clicking on my button Word catch this action, but Outlook is not
=((
Anybody knows how to process CommandButton action on the client in my case?
Thank u.