Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Sorry mates, I've been lookin at the API Guide, and I can't find what I'm looking for.
I know that I can find all the object id's of a sheet with the function :
ActiveDocument.ActiveSheet.GetSheetObjects
But what about if I want to know the list of the id's of all the sheets??
Many thanks in advance!!!
you can use this one:
sub LoopSheet
for i = 0 to ActiveDocument.NoOfSheets - 1
set ss= ActiveDocument.GetSheet(i)
msgbox(ss.GetProperties.SheetId)
next
end sub
hope this works...
try to use this as your guide:
Sub SheetID
set mysheet=ActiveDocument.ActiveSheet
set sp=mysheet.GetProperties
Sid = sp.SheetID
msgbox("Sheet ID = "&Sid)
End Sub
thanks mongz for your quick reply.
I know I can get the current sheet Id, but the point is, how can I get the others? This is what I can't find for.
Thanks in advance!
you can use this one:
sub LoopSheet
for i = 0 to ActiveDocument.NoOfSheets - 1
set ss= ActiveDocument.GetSheet(i)
msgbox(ss.GetProperties.SheetId)
next
end sub
hope this works...
Thank you very much mOngkz
that was what I was looking for.
See you around!!