G
gregor2324
Hi,
I have a problem with my VB app using VBA for Word 97, sometimes it
goes crazy when I
try to localize my document name using Documents(i) when i iterates
from 1 to Documents.Count.
I noticed that usually the object Documents(0) does not exist, but if
it does, my application goes wrong (it can't find my document and so
can't close it, the file is open and I get Permission Denied error when
I try to save it.) These problems exist only when Documents(0) exists
and usually holds the document I can't locate.
In the documentation I read that the first document is however,
Documents(1). Moreover, in that case two names are usually the same!
For example Documents(2).Name = Documents(3).Name is True! What's the
problem?
Thanks in advance.
I have a problem with my VB app using VBA for Word 97, sometimes it
goes crazy when I
try to localize my document name using Documents(i) when i iterates
from 1 to Documents.Count.
I noticed that usually the object Documents(0) does not exist, but if
it does, my application goes wrong (it can't find my document and so
can't close it, the file is open and I get Permission Denied error when
I try to save it.) These problems exist only when Documents(0) exists
and usually holds the document I can't locate.
In the documentation I read that the first document is however,
Documents(1). Moreover, in that case two names are usually the same!
For example Documents(2).Name = Documents(3).Name is True! What's the
problem?
Thanks in advance.