Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I think one of these two lines may be what you are looking for then.

Dim oActiveDoc As Document = ThisApplication.ActiveDocument
Dim oVTab1 As ViewTab = oActiveDoc.Views.Item(1).ViewTab
Dim oVTab2 As ViewTab = ThisApplication.ActiveView.ViewTab

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)