Solved

creating an addin to insert code into my vb project

Posted on 2004-08-06
4
193 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now