Check out Reporting Services Scripter:
http://www.sqldbatips.com/showarticle.asp?ID=62
It can script out everything from a given 2005/2008 environment.
After it's finished, you can look at the resulting scripts to get an idea about the VB scripts.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP