473,322 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Add in for MS office

I would like to create addIn for outlook,word and excel.

That is a new button on menu bar. When user open a new mail message or word
document or excell document, the button shows on menu bar, and when user
clicks this button, I read the projects of the current user from the
database and when user select the project,
the opened document (which is a mail message, word file or excell file) is
saved to the database with the selected project ID.

How can I do that in VB.net. What kind of project I should create?
Any example or ideas?

Thank you,
Simon
Nov 21 '05 #1
4 1163
Hi,

There is wizard for creating office add ins. Create a new project,
Other projects, extensibility projects, and select shared add in.

Ken
----------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:eO*************@TK2MSFTNGP12.phx.gbl...
I would like to create addIn for outlook,word and excel.

That is a new button on menu bar. When user open a new mail message or word
document or excell document, the button shows on menu bar, and when user
clicks this button, I read the projects of the current user from the
database and when user select the project,
the opened document (which is a mail message, word file or excell file) is
saved to the database with the selected project ID.

How can I do that in VB.net. What kind of project I should create?
Any example or ideas?

Thank you,
Simon

Nov 21 '05 #2
Thank you very much, taht is what I need.

Do you have some simple example for start, maybe link to it or some
recommended book?
Or can you give me some instruction to achive the required functionallity?

Thank you,
Simon

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ei**************@TK2MSFTNGP12.phx.gbl...
Hi,

There is wizard for creating office add ins. Create a new project, Other projects, extensibility projects, and select shared add in.

Ken
----------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:eO*************@TK2MSFTNGP12.phx.gbl...
I would like to create addIn for outlook,word and excel.

That is a new button on menu bar. When user open a new mail message or word document or excell document, the button shows on menu bar, and when user
clicks this button, I read the projects of the current user from the
database and when user select the project,
the opened document (which is a mail message, word file or excell file) is
saved to the database with the selected project ID.

How can I do that in VB.net. What kind of project I should create?
Any example or ideas?

Thank you,
Simon

Nov 21 '05 #3
Hi,

http://msdn.microsoft.com/library/de...ce06062002.asp

http://support.microsoft.com/default...;en-us;Q302896

Ken
------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:OK*************@tk2msftngp13.phx.gbl...
Thank you very much, taht is what I need.

Do you have some simple example for start, maybe link to it or some
recommended book?
Or can you give me some instruction to achive the required functionallity?

Thank you,
Simon

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ei**************@TK2MSFTNGP12.phx.gbl...
Hi,

There is wizard for creating office add ins. Create a new project, Other projects, extensibility projects, and select shared add in.

Ken
----------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:eO*************@TK2MSFTNGP12.phx.gbl...
I would like to create addIn for outlook,word and excel.

That is a new button on menu bar. When user open a new mail message or word document or excell document, the button shows on menu bar, and when user
clicks this button, I read the projects of the current user from the
database and when user select the project,
the opened document (which is a mail message, word file or excell file) is
saved to the database with the selected project ID.

How can I do that in VB.net. What kind of project I should create?
Any example or ideas?

Thank you,
Simon


Nov 21 '05 #4
thank you, I belive it will be enough to finish my job in VB.NET.
I have one simple question:

I created before this add in in VB6. It works perfect only problem is, that
the button is added in all office programs, but I would like, that it's
added only to Outlook menu bar.

I use this sintaks to create button:

Private Sub myOlInspectors_NewInspector(ByVal Inspector As
Outlook.Inspector)
'button will show when user open the email message
If Inspector.CurrentItem.MessageClass = "IPM.Note" Then
'should I check here if application is outlook than create button
Set MyButton = Inspector.CommandBars.Item("Menu
Bar").Controls.Add(msoControlButton, , , , True)
With MyButton
.Caption = "CPU"
.OnAction = "!<myaddin.connect>"
End With
End If

End Sub

Why this button is shown on my menu bar also when I open word application?
If it helps, I can send all sintkas of my program.
maybe I should remove button on disconection or something similar?

Private Sub AddinInstance_OnDisconnection(ByVal RemoveMode As
AddInDesignerObjects.ext_DisconnectMode, custom() As Variant)
'I should put some remove function here?
Set myOlApp = Nothing
Set myOlInspectors = Nothing
Set MyButton = Nothing
End Sub

Thank you,
Simon

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi,

http://msdn.microsoft.com/library/de...ce06062002.asp
http://support.microsoft.com/default...;en-us;Q302896

Ken
------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:OK*************@tk2msftngp13.phx.gbl...
Thank you very much, taht is what I need.

Do you have some simple example for start, maybe link to it or some
recommended book?
Or can you give me some instruction to achive the required functionallity?

Thank you,
Simon

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ei**************@TK2MSFTNGP12.phx.gbl...
Hi,

There is wizard for creating office add ins. Create a new

project,
Other projects, extensibility projects, and select shared add in.

Ken
----------------------
"simon" <si*********@stud-moderna.si> wrote in message
news:eO*************@TK2MSFTNGP12.phx.gbl...
I would like to create addIn for outlook,word and excel.

That is a new button on menu bar. When user open a new mail message or

word
document or excell document, the button shows on menu bar, and when user
clicks this button, I read the projects of the current user from the
database and when user select the project,
the opened document (which is a mail message, word file or excell file) is saved to the database with the selected project ID.

How can I do that in VB.net. What kind of project I should create?
Any example or ideas?

Thank you,
Simon


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chuck Arney | last post by:
After installing Office 2003 PRO and attempting to run SETUP to install the Visual Studio Tools for Office version 2003, I get the error message "Your computer must have Microsoft Office...
1
by: zfeld | last post by:
1. Where do I get the Office 2003 PIAs? On the MSDN download site there are only downloads for XP office PIAs. Do they automatically get installed to the GAC with the installation of office 2003? ...
0
by: Yeongja_Choi | last post by:
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Currently a Korean party now holds the...
4
by: J-T | last post by:
I'm trying to read an excell file in my .Net application using Office XP Primary Interop Assemblies (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp)....
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
6
by: Luke Vogel | last post by:
Hi all ... could someone point me in the right direction for programming office applications (specifically excel) using vb.net? Can vb.net replace or enhance VBA that comes with the office suite?...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
11
by: Don | last post by:
QUESTIONS: 1. Has anyone figured out how to successfully install the Office 97 Pro Service Release 2 patch in Vista? 2. Has anyone successfully installed an Office 97 Pro CD (SR2 version) in...
0
by: Bill Fallon | last post by:
I am developing a VB.Net application with VS 2005 that opens an Excel workbook and populates the worksheet with data. I started developing the application with Office 2007 installed on my Vista...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.