A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Run .dll programatically



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old November 5th 09, 01:24 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Run .dll programatically

Commands on the Ribbon can't be executed programmatically from VBA, AFAIK.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"hlock" wrote in message
...
Works like a charm! Now how would I do this if the email was open. The
same
"Save to Vignette IDM" is located on the Ribbon on the Add-Ins tab in the
Toolbar Commands group. Thank you so much.

"Sue Mosher [MVP]" wrote:

This VBA macro should execute that button on the Standard toolbar in an
Explorer window:

Sub RunIt()
Dim cb As Office.CommandBar
Dim cbb As Office.CommandBarButton
Dim ctrl As Office.CommandBarControl
Dim exp As Outlook.Explorer

Set exp = Application.ActiveExplorer
Set cb = exp.CommandBars("Standard")
For Each ctrl In cb.Controls
If ctrl.Caption = "Save to Vignette IDM" Then
Set cbb = ctrl
cbb.Execute
Exit For
End If
Next

Set cb = Nothing
Set cbb = Nothing
Set ctrl = Nothing
Set exp = Nothing
End Sub

"hlock" wrote in message
...
We'll take what we can get. The addin is being very difficult. The
button
is on the Standard Toolbar and is captioned "Save to Vignette IDM".
The
addin is also under the File menu captioned "Save to Vignette IDM". No
other
key strokes. Other info - the registry key has a value name of TOWER
E-MAIL
CAPTURE and a value data of 4.0;C:\Program
Files\Tower\ttoutext.dll;1;01000010000000;11000001 00. Is there
anything
else
you need?


"Sue Mosher [MVP]" wrote:

Clicking on the button might be possible, but that's not the way I
read
your
request. If that's all you want to do, tell us the name of the toolbar
and
the caption the button uses, including any accelerator keys.

"hlock" wrote in message
...
Oh boy - it seemed too easy. All we wanted to do was "click" on the
toolbar
button through visual basic rather than actually clicking on it with
the
mouse.

"Sue Mosher [MVP]" wrote:

Any mechanism to invoke the .dll programmatically would have to be
exposed
by the original programmer of that .dll. In other words, it's not
something
we can help you with. You'll need to ask the creator of the
document
management system.

"hlock" wrote in message
news Outlook 2007 - Our document management system has an Outlook
exchange
client
extension that allows us to import an email directly to the
document
management system. We click on an email, click on the command
button
and
the
import dialogue box launches. After searching, I found that the
ECE
points
to a .dll in regedit. Ultimately, we want to create a macro that
asks
the
user to import attachments. If the user chooses Yes, that ece
above
runs.
If the user chooses No, another macro runs. How do I write the
code
to
invoke the .dll when the user chooses Yes. Not being very
literate
in
programming, I would appreciate any help. Thanks.



.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off reminders programatically Adrian[_2_] Outlook and VBA 8 February 26th 08 08:27 PM
Import Vcard programatically GSK Outlook and VBA 1 February 12th 08 06:57 PM
Get PST Display Name programatically [email protected] Outlook and VBA 1 March 21st 07 01:43 PM
How to customize Views programatically? Lucas Campos Outlook and VBA 8 May 31st 06 03:48 PM
Compact .PST Programatically ScoSha Outlook and VBA 1 February 1st 06 10:16 PM


All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.