Another handy way to get into VBA is to record macros then look at them.
Tools/Macro/Record
Do some stuff (like add a column to a table, enter data etc...)
Tools/Macro/Stop recorder
Tools/Macro/Visual Basic Editor (Alt-F11)
Expand the '+' in front of "ProjectGlobal" (left side of screen normally)
Expand the '+' in front of "Modules"
The macro you just recorded will show up as the highest numbered module
Double click on it to see your code. There should also be some MS provided
examples like Format_Duration and Rollup_formatting.
Have fun.
Mark
--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc,
www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________
The nicest thing about NOT planning is
that failure comes as a complete surprise and is not
preceded by a period of worry and depression.
- Sir John Harvey-Jones
Jack M. said:
I am a beginner and need direction on training tools for automating MS
Project 2002. Can someone recommend books...etc that would help me to learn
VBA. I have some programming exp. but very limited. Any suggestions are
appreciated.