Run .dll programatically

Status
Not open for further replies.
H

hlock

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.
 
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.

Sue Mosher

"hlock" <hlock> wrote in message

news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> 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.
 
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.

> > Sue Mosher
> > >

> "hlock" <hlock> wrote in message
> news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> > 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.


> .
>
 
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.

Sue Mosher

"hlock" <hlock> wrote in message

news:A2A9A3B2-4517-4D4F-81DE-8B772DFFD59A@microsoft.com...
> 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" <hlock> wrote in message
> > news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> > > 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.
 
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;1100000100. 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.
> > Sue Mosher
> > >

> "hlock" <hlock> wrote in message
> news:A2A9A3B2-4517-4D4F-81DE-8B772DFFD59A@microsoft.com...
> > 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" <hlock> wrote in message
> >> news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> >> > 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.


> .
>
 
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

Sue Mosher

"hlock" <hlock> wrote in message

news:3D6657F2-FB29-42DF-A5E3-DFFE43989356@microsoft.com...
> 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;1100000100. 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" <hlock> wrote in message
> > news:A2A9A3B2-4517-4D4F-81DE-8B772DFFD59A@microsoft.com...
> > > 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" <hlock> wrote in message
> > >> news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> > >> > 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.
 
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

> > Sue Mosher
> > >

> "hlock" <hlock> wrote in message
> news:3D6657F2-FB29-42DF-A5E3-DFFE43989356@microsoft.com...
> > 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;1100000100. 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" <hlock> wrote in message
> >> news:A2A9A3B2-4517-4D4F-81DE-8B772DFFD59A@microsoft.com...
> >> > 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" <hlock> wrote in message
> >> >> news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> >> >> > 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.


> .
>
 
Commands on the Ribbon can't be executed programmatically from VBA, AFAIK.

Sue Mosher

"hlock" <hlock> wrote in message

news:802A7DEE-E55F-4ACD-A34D-EE042375792A@microsoft.com...
> 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" <hlock> wrote in message
> > news:3D6657F2-FB29-42DF-A5E3-DFFE43989356@microsoft.com...
> > > 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;1100000100. 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" <hlock> wrote in message
> > >> news:A2A9A3B2-4517-4D4F-81DE-8B772DFFD59A@microsoft.com...
> > >> > 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" <hlock> wrote in message
> > >> >> news:D7EECB05-6179-49C2-9956-705A65990B6A@microsoft.com...
> > >> >> > 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.

>

>
>> .
> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
X Run macro automatically when a mail appears in the sent folder Using Outlook 5
V Outlook macros no longer run until VB editor is opened Outlook VBA and Custom Forms 0
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
T Outlook 2010 Errore run-time -2147417851 (80010105) Metodo delete ContactItem non riuscito Outlook VBA and Custom Forms 0
K Run a script rule to auto 'send again' on undeliverable emails? Outlook VBA and Custom Forms 1
G Save attachment run a script rule Outlook VBA and Custom Forms 0
U Outlook 2019 VBA run-time error 424 Outlook VBA and Custom Forms 2
D Outlook 2013 Macros only run in VB editor, not in drop down or button Outlook VBA and Custom Forms 14
D We're sorry but outlook has run into an error Using Outlook 6
M White square in body of Outlook Messages (O2016 Version 2012 32bit Click To Run) Using Outlook 4
E Having some trouble with a run-a-script rule (moving mail based on file type) Outlook VBA and Custom Forms 5
C Auto Run VBA Code on new email Outlook VBA and Custom Forms 1
Aussie Rules Run a Script on an Incoming Email OK and then the Email reverts Outlook VBA and Custom Forms 0
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
B VBScript doesn't run on Recipient Email Outlook VBA and Custom Forms 2
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
Y Outlook 2013 Run A Script Outlook VBA and Custom Forms 4
O Outlook 2016 This rule will only run when you check your email in Outlook.... Using Outlook 4
B run scripts Using Outlook 1
A Run time error 424. object required in outlook 2013 Outlook VBA and Custom Forms 10
Dave A Run macro on existing appointment when it changes Outlook VBA and Custom Forms 1
O Run macro automatically at sending an email Using Outlook 11
P errors appear every time I run SCANPST Using Outlook 3
B Outlook rule run a Script doesn't work Outlook VBA and Custom Forms 1
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
B Wanting to run a script that will filter any body that has a russian link in it. Outlook VBA and Custom Forms 5
P Run Time Error 91 when linking contact to task in VBA Outlook VBA and Custom Forms 1
O Having rules run on old mails noved to inbox Outlook VBA and Custom Forms 8
Bri the Tech Guy Registry Tweak to make "Run a Script" Action Available Outlook VBA and Custom Forms 2
Bri the Tech Guy Run Script rule not running for newly arriving messages Outlook VBA and Custom Forms 25
J Custom form code doesn't run Outlook VBA and Custom Forms 2
J VBA Run When Reply Outlook VBA and Custom Forms 4
Vijay Error in rule- Run a script Using Outlook 1
Vijay Run script doesn't work in outlook Using Outlook 1
O VBA to Run Font Change on Outlook Startup Outlook VBA and Custom Forms 4
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
Diane Poremsky Run a Script Rule: Send a New Message when a Message Arrives Using Outlook 2
Diane Poremsky Using Scanpst in Outlook Click to Run Using Outlook 0
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
L Run a Script Rule doesn't work Using Outlook 5
B Can't run macro from QAT when emailing from Acrobat Outlook VBA and Custom Forms 0
J Outlook 2010 VBScript editor does not run code at all Outlook VBA and Custom Forms 0
X Outlook script to run excel data Outlook VBA and Custom Forms 1
D How to Run a Report Based on Age of Inbox Items Outlook VBA and Custom Forms 0
D RUN SCRIPT WHEN OUTLOOK IS CLOSE Outlook VBA and Custom Forms 1
L Cannot run script from rule Outlook VBA and Custom Forms 7
M Office 365 Click to run BCM (Business Contact Manager) 0

Similar threads

Back
Top