Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default 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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding Todd Huttenstine[_3_] Excel Programming 3 April 30th 04 11:01 AM
Late Binding Cindy Excel Programming 11 April 23rd 04 03:34 PM
Late Binding question - newbie Den Excel Programming 2 April 9th 04 06:58 PM
EARLY binding or LATE binding ? jason Excel Programming 6 February 26th 04 04:57 PM
DAO Late Binding? Sharqua Excel Programming 2 January 4th 04 02:05 AM


All times are GMT +1. The time now is 02:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"