|
-
Aug 12th, 2009, 05:27 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Late Binding In Case of Office
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|