It looks like what you are trying to do is iterate through a collection of workbooks. But you are trying to get only the ActiveWorkbook which is not a collection...so I'm not exactly sure what you're after. Anyways:
Change this:
Code:
Dim vbp as VBProject
Dim vbc as VBComponent
To:
Code:
'this is late bound so you won't get intellisense:
Dim vbp as object
'or try: Dim vbp as new appMsExcel.Workbook
'for early-binding
THEN do this to get the Active workbook:
Code:
Set vbp = appMsExcel.ActiveWorkbook
'I get the error here
msgbox vbp.Name
I'm going by memory here and it's been a while. But that should get you on the right track.