Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
is there a smarter way how to get an Item Number of particular Sheet object in Sheets Object?
Only way what I have found yet is:
Dim oDoc As DrawingDocument Dim oSheet As Sheet oSheet = ActiveSheet.Sheet oDoc = oSheet.Parent Dim oSheet2 As Sheet Dim iSheetIndex As Integer = 0 For Each oSheet2 In oDoc.Sheets iSheetIndex += 1 If oSheet Is oSheet2 Then Exit For Next Logger.Info("Index = " & iSheetIndex)
I think there has to be more elegant way how to do it.
Thanks.
Inventor 2022, Windows 10 Pro
Sorry for bad English.
Solved! Go to Solution.