I do not understand at all, what you want to achieve... But:
Use the NotesViewNavigator Class to cycle through everything.
Dim ses as New NotesSession
Dim db as NotesDatabase
Dim viw as NotesView
Dim viwNav as NotesViewNavigator
Dim veCat as NotesViewEntry
Dim veCatNext as NotesViewEntry
Dim veDoc as NotesViewEntry
Set db = ses.CurrentDatabase
Set viw = db.Getview("View with 2 level category")
Set viwNav = viw.CreateViewNav
Set veCat = viwNav.GetFirst()
While not veCat is Nothing
Set veCatNext = viwNav.GetNextCategory()
If veCatNext.IndentLevel < veCat.IndentLevel '- This is a subcategory of the given category
'- do whatever you want
'- e.g. build a new viewnavigator from this using viw.CreateViewNavFromChildren
'- or get the first document by set veDoc = viwNav.getNextDocument( veCat )
Elseif veCatNext.IndentLevel = veCat.IndentLevel '- This is the same (sub)category
Else '- we are back to the next main category
End If
Set veCat = veCatNext
Wend