Accessing Sheet Number through Ilogic

Accessing Sheet Number through Ilogic

AMN3161
Advocate Advocate
405 Views
2 Replies
Message 1 of 3

Accessing Sheet Number through Ilogic

AMN3161
Advocate
Advocate

I didn't think this property would be so difficult to access but how do I use this and just pull the active sheets number

AMN3161_0-1674142695442.png

 

I am making a numbering system where i want to use the Sheet Number as a part of the numbering but i cant find how to access it

 

Any help would be appreciated 

0 Likes
Accepted solutions (1)
406 Views
2 Replies
Replies (2)
Message 2 of 3

Cadkunde.nl
Collaborator
Collaborator
Accepted solution
Dim oDoc As DrawingDocument = ThisDoc.Document

For i = 1 To oDoc.Sheets.Count
	If oDoc.Sheets.Item(i) Is oDoc.ActiveSheet Then
		MsgBox(i)
	End If
Next
0 Likes
Message 3 of 3

AMN3161
Advocate
Advocate

Thought it would be easier to access, thank you!

0 Likes