A
Aldo
Hi all
I'm working on a macro to create 10s of word documents and then pasting the
clipboard into then and save them
I would like to avoid the created windows to appear on the screen.
Is there any possibility to paste the clipboard and save on non visible and
non active documents ?
As i personally didn't find a solution, I tried to create the documents with
a reduced size with this code but when I create a non visible document I
cannot do anything on it, even make it visible as the .windows.count = 0 so
I cannot use the .windows(1).visible = true
Any idea ?
Documents.Add Template:="", NewTemplate:=False, DocumentType:=1,
Visible:=False
For I = 1 To Documents.Count
NN = Documents(I).Name
With Documents(I).Windows(1) ---> Error on non visible document
.Height = 100
.Width = 100
.Visible = True
.Activate
End With
Next
Thanks
I'm working on a macro to create 10s of word documents and then pasting the
clipboard into then and save them
I would like to avoid the created windows to appear on the screen.
Is there any possibility to paste the clipboard and save on non visible and
non active documents ?
As i personally didn't find a solution, I tried to create the documents with
a reduced size with this code but when I create a non visible document I
cannot do anything on it, even make it visible as the .windows.count = 0 so
I cannot use the .windows(1).visible = true
Any idea ?
Documents.Add Template:="", NewTemplate:=False, DocumentType:=1,
Visible:=False
For I = 1 To Documents.Count
NN = Documents(I).Name
With Documents(I).Windows(1) ---> Error on non visible document
.Height = 100
.Width = 100
.Visible = True
.Activate
End With
Next
Thanks