Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think this line
wrd.Visible should be wrd.Visible = True or in which line are you getting the error ? -- Regards Juan Pablo González "luvgreen" wrote in message ... Hi, All, I read through the late binding related posts, but it still did not resolve my problem. I tried this code in excel XP. I got this error "Run time error 5863 Application-defined or object-defined error". Please explain why and what I should do. Thanks much. Sub Try() Dim wrd As Object Dim doc As Object Set wrd = CreateObject("Word.Application") wrd.Visible Set doc = wrd.Documents.Add doc.Content = "to be or not" doc.Save End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Juan, Thank you so much!!!! It worked.
"Juan Pablo González" wrote: I think this line wrd.Visible should be wrd.Visible = True or in which line are you getting the error ? -- Regards Juan Pablo González "luvgreen" wrote in message ... Hi, All, I read through the late binding related posts, but it still did not resolve my problem. I tried this code in excel XP. I got this error "Run time error 5863 Application-defined or object-defined error". Please explain why and what I should do. Thanks much. Sub Try() Dim wrd As Object Dim doc As Object Set wrd = CreateObject("Word.Application") wrd.Visible Set doc = wrd.Documents.Add doc.Content = "to be or not" doc.Save End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Late Binding | Excel Programming | |||
Late Binding | Excel Programming | |||
Late Binding question - newbie | Excel Programming | |||
EARLY binding or LATE binding ? | Excel Programming | |||
DAO Late Binding? | Excel Programming |