I use this code to creat a word doc using the visual basic
private sub writeinword ()
'code started
Dim myWord As Object
Set myWord = GetObject("", "Word.Basic")
myWord.AppMaximize ("Microsoft Word")
myWord.FileNew
myWord.FormatFont Points:="14", Font:="Arial", Bold:=1
myWord.formatparagraph Alignment:=0
myWord.Insert "Hello !"
myWord.Insertpara
myWord.Insert " Thats Me"
myWord.Insertpara
myWord.Insertpara
myWord.Insert "GoodBye : ) "
'code ended
end sub
but i don't Know why the font and it's size can't be changed
and i didn't know the code to modify the margins
so if any one know anything about this problem plz replay this topic