S
scotty
Hello,
I'm trying to copy each line of a text (which is a name list) in an array; I
created a script like:
Dim i, j, oldname, newname
j = 1
For i = 1 To .FoundFiles.Count
oldname = .FoundFiles(i)
newname = ActiveDocument.Paragraphs(j)
Name oldname As newname
j = j + 1
Next i
Unfortunately, the so selected "newname" includes an invisible paragraph
mark, which leads to problems, as "newname" will actually become a file
name.
I think I can easily make a selection avoiding that paragraph mark, but I'd
rather stay out of the "select" command; is there a simple way to declare
"newname" as "ActiveDocument.Paragraphs(j) except paragraph mark" ?
Thanks very much in advance for any help,
Scotty
I'm trying to copy each line of a text (which is a name list) in an array; I
created a script like:
Dim i, j, oldname, newname
j = 1
For i = 1 To .FoundFiles.Count
oldname = .FoundFiles(i)
newname = ActiveDocument.Paragraphs(j)
Name oldname As newname
j = j + 1
Next i
Unfortunately, the so selected "newname" includes an invisible paragraph
mark, which leads to problems, as "newname" will actually become a file
name.
I think I can easily make a selection avoiding that paragraph mark, but I'd
rather stay out of the "select" command; is there a simple way to declare
"newname" as "ActiveDocument.Paragraphs(j) except paragraph mark" ?
Thanks very much in advance for any help,
Scotty