HOWTO Process button click on the client with merged Office applications

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top