PC Review


Reply
Thread Tools Rate Thread

i am trying to Execute some command Bar Button but doesn't work

 
 
=?Utf-8?B?ZG9ybGluZw==?=
Guest
Posts: n/a
 
      24th Jun 2005

hi there,

i am trying to Execute some command Bar Button i can change if there
Visible, Enabled and Caption of them but i can't Execute them and i don;t
know why is it becuase i am using VB.net and the COM add-in dll uses VB 6??
below is my code in case i am doing some think wrong? i put the some code in
to VBA in word and it works and does the Execute fine so that shows that the
COM add-in works i did that in word 2003 and the COM ADD-IN is for Outlook
2003?

What do i need to change or doing wrong?


DocumentsButton() As Office.CommandBarButton

ProcessButton() As Office.CommandBarButton


Code:
Dim oCM As Object
Set olApp = CreateObject("Outlook.Application")

Set oCM = olApp.COMAddIns.Item("OutlookCRM.Connect").Object


oCM.ContactComboBox.Text = "da"
'MsgBox (oCM.ProjectButton.TooltipText)

oCM.ProcessMode = 2
MsgBox(oCM.Control.ProcessButton.Visible)
MsgBox(oCM.Control.ProcessButton.Enabled)

oCM.Control.DocumentsButton.Visible = True
oCM.Control.DocumentsButton.Enabled = True
oCM.Control.DocumentsButton.Execute()


oCM.Control.DocumentsButton.Visible = True
oCM.Control.DocumentsButton.Enabled = True
oCM.Control.DocumentsButton.Execute()
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The command button on my forms doesn't work, any clues why? GHouse Microsoft Access Forms 13 31st Jan 2008 10:09 AM
Command button in toolbox doesn't work. =?Utf-8?B?VGhpc01pa2U=?= Microsoft Access 4 13th Oct 2006 06:11 PM
Tool Box Command button doesn't work =?Utf-8?B?Smlt?= Microsoft Access Form Coding 7 13th Feb 2006 06:22 PM
i am trying to Execute some command Bar Button but doesn't work =?Utf-8?B?ZG9ybGluZw==?= Microsoft Outlook Program Addins 3 27th Jun 2005 08:40 AM
Assign Macro to Command Button doesn't work CLS Microsoft Excel Programming 2 31st May 2005 05:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 AM.