(assumes VB5)
Firstly, you need to include a reference to Microsoft Visual Basic 5.0 Extensibility. Now you will be able to see the object model for the IDE.

I used the VB Addin example code for my first steps, which gave me a Connect class, which:

1. Defines an instance of the IDE as:
Public VBInstance As vbide.VBE

and

2. initialises it as part of your Connect class in the IDTExtensibility_OnConnection event:
Set VBInstance = VBInst

You will have access to the ActiveProject property as VBInstance.ActiveProject

If the properties you want to change are not explicit properties of the project, use the Read/WriteProperty methods to see if they exist - to determine names, I typically populate all fields with values I can identify then use ReadProperty to document them.

I should have been more clear, I suppose. Getting to the ActiveProject with ReadProperty was the easy part as that is well documented (although Poneill's response is very well written). The documentation states that .ReadProperty used for "custom" properties, which isn't clear if that includes the items in the standard properties area of the .vbp file. I've used it to store and fetch stuff in the latter portion of the .vbp file, but I can't figure out how to get the main stuff. The part I am trying to figure out is how to change MajorVer, MinorVer, and RevisionVer from the main .vbp file. The syntax is .ReadProperty(Section,Key). The Key will be something like "MajorVer" or "MinorVer", but what is Section? I've tried PROJECT, MAIN, MAINPROJECT, VBPROJECT, etc, to no avail. The only other solution I've thought of is to read in the .vbp file as a standard text, modifiy, and write out again, a pretty lame solution.

Thanks. null was one of the values I had already tried and it simply fails. I also already tried reviewing the .vbp file and there is no heading to use as a reference. You'd think this wouldn't be that complicated considering how friendly most of VBE is.

No methods exist for changing project options. The ReadProperty and WriteProperty methods of the ProjectTemplate object are for user-defined properties only. Add-ins can modify the options by writing directly to the project file.

Introduction
While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library. This article will introduce you to the SC library a…

Here are a few simple, working, games that you can use as-is or as the basis for your own games.
Tic-Tac-Toe
This is one of the simplest of all games.
The game allows for a choice of who goes first and keeps track of the number of wins for…

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…