Take a look at the VBA example for sheet set manager.
i use this so I can support multiple versions of AutoCAD
I build for each Type library ie 2005, 2006 "ACAD16" 2007,2008 "ACAD17". using "conditional compilation symbol" see this article.
http://through-the-interface.typepad.com/through_the_interface/2006/08/supporting_mult.html
#If ACADVERSION = "ACAD16" Then
Imports ACSMCOMPONENTS16Lib
#ElseIf ACADVERSION = "ACAD17" Then
Imports ACSMCOMPONENTS17Lib
#End If
null