S
shankar.stat
hi all,
this is what I need to do:
say I have a folder with several files, either doc or rtf files, each
file many pages;
I need to be able to have a single file which will contain only page
one from each individual file;
from previous threads, I have the code which would insert all docs into
single file;
Dim xFile As String
Documents.Add
' Get files one at a time.
xFile = Dir$("c:\TakeThese\*.doc")
Do While xFile <> ""
' Insert first file
Selection.InsertFile FileName:="c:\TakeThese\" & xFile
Selection.InsertBreak Type:=wdSectionBreakNextPage
' Get next file
xFile = Dir$()
Loop
MsgBox "Done."
however I need only page-1 from each file.. the selection.InsertFile is
now allowing me to choose particular page; I searched all over but I
did not find any help;
any help would be greatly appreciated;
this is what I need to do:
say I have a folder with several files, either doc or rtf files, each
file many pages;
I need to be able to have a single file which will contain only page
one from each individual file;
from previous threads, I have the code which would insert all docs into
single file;
Dim xFile As String
Documents.Add
' Get files one at a time.
xFile = Dir$("c:\TakeThese\*.doc")
Do While xFile <> ""
' Insert first file
Selection.InsertFile FileName:="c:\TakeThese\" & xFile
Selection.InsertBreak Type:=wdSectionBreakNextPage
' Get next file
xFile = Dir$()
Loop
MsgBox "Done."
however I need only page-1 from each file.. the selection.InsertFile is
now allowing me to choose particular page; I searched all over but I
did not find any help;
any help would be greatly appreciated;