dear expert,
i opened a word document at runtime and wrote a some text into it.the following was the code i used....but this doc gets saved in the personal folder.can i make it save in a place i wish to?
i also tried .saveas, it saved but format changed a bit
i saved the second time it said one file already open(some silly error i guess)
===========================================================
If appword.Documents.Count = 0 Then
appword.Documents.Add
End If
appword.Documents(1).PageSetup.Orientation = wdOrientLandscape
appword.Documents(1).Range.Font.Size = 6
appword.Documents(1).Range.Font.Bold = True
appword.Documents(1).Range.Font.Name = "ariel"
appword.Documents(1).Range.InsertAfter s
set wDoc = appword.Document(1)
wDoc.saveas ("path"
wDoc.Close
thankyou for your time
rumman
i opened a word document at runtime and wrote a some text into it.the following was the code i used....but this doc gets saved in the personal folder.can i make it save in a place i wish to?
i also tried .saveas, it saved but format changed a bit
i saved the second time it said one file already open(some silly error i guess)
===========================================================
If appword.Documents.Count = 0 Then
appword.Documents.Add
End If
appword.Documents(1).PageSetup.Orientation = wdOrientLandscape
appword.Documents(1).Range.Font.Size = 6
appword.Documents(1).Range.Font.Bold = True
appword.Documents(1).Range.Font.Name = "ariel"
appword.Documents(1).Range.InsertAfter s
set wDoc = appword.Document(1)
wDoc.saveas ("path"
wDoc.Close
thankyou for your time
rumman