Solved

creating an addin to insert code into my vb project

Posted on 2004-08-06
4
196 Views
Last Modified: 2012-05-05
Hello,

I want to create an add-in that, when called will insert 4 lines of text into the VB IDE . I don't know much about add-ins and would like to know if this is possible.  The text is placed where the curser is located .

Just wondering if anyone could give a few pointers as to how i'd get started  ?


Thanks.

Ken
0
Comment
Question by:kfc23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
dancebert earned 65 total points
ID: 11736930
Francesco Balena wrote an article in the Augues 97 Visual Basic Programmers Journal that describes in detail the object model needed to write an add-in that communicates with the IDE.  I just skimmed the article, it doesn't explictly say one can insert code, but it doesn't say one can't either.  VBPJ archives are at www.devx.com.  I don't have a URL for the article, just a xerox copy of the dead tree version.  Title of the article is 'Roll your own Add-ins'
0
 
LVL 7

Assisted Solution

by:Burbble
Burbble earned 60 total points
ID: 11737922
Here's a good example:
http://www.frez.co.uk/vbaddindemo.zip

There is a "Timestamp" function that I believe inserts lines into the code window. You can modify it to do whatever you want.

-Burbble
0
 
LVL 7

Expert Comment

by:Burbble
ID: 11752351
It looks like you got it working, glad I could help ;-)

-Burbble
0
 

Author Comment

by:kfc23
ID: 11752932
ya both comments were very helpful . works great. thanks a lot.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question