Private Sub Command1_Click() 'Declare our Late Bound object(s)
Dim oWB As Object 'Create a new workbook
Dim moApp As Object
Set moApp = CreateObject("Word.Application")
Set oWB = moApp.documents.Add 'Do other stuff to it like populate cells etc. '...
Set oWB = Nothing
End Sub

i have used the above code but a default word document id not generated as soon as i press the command button.

pls help me in this regard.

with regards!
Sethuraman R