Jennifer,
Just for reference, you are a little cryptic in your opening statements.
For example, in my world a "widget" is a tangible thing (i.e. a piece of
hardware) not an intangible like a task (i.e. "... widget I got asked to
do?)
I doubt you will find a book on VBA for a specific version of Project.
The best reference I know can be found on the MVP website at:
http://www.mvps.org/project/links.htm
Look at the bottom of the page for, "Project 98 Visual Basic Environment
Training Materials". Even though it says it is for Project 98, the
material is equally applicable to all later versions. The only real
difference for VBA is that in later versions the object model is
expanded. Object model changes can be reviewed by looking at the VBA
help files for whichever version of Project you are using.
I think you already discovered the problem with your approach. Task
views and Resource views each have an associated table that describes
which Project field to display in which column. And just like the spare
fields, view tables are unique to the view type. For example, in your
case the "&XYZ Default View Table" is indeed missing when you are
dealing with the Resource Sheet because that table is a Task table.
Personally I wouldn't mess with checking the TableType property. I would
simply use TableEdit to create the appropriate table for the view of
interest, be it Task or Resource.
Hope this helps.
John
Project MVP