your doc where you are running this code is not exempted.
you need to Check If the Doc.Name is same as the Current document name
and prevent it from closing.
btw you will never get .Count of 0 because of same reason above.
your doc where you are running this code is not exempted.
you need to Check If the Doc.Name is same as the Current document name
and prevent it from closing.
btw you will never get .Count of 0 because of same reason above.