![]() |
Another Late Binding Question
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 |
Another Late Binding Question
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 |
All times are GMT +1. The time now is 01:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com