Pleasure
09-16-2008, 04:49 AM
Hello my friends. I'm actually new in this forum. Congratulations for your hard work. Without you, people like me ... well known as "dammies", would not be able to do a lot of things.
I don't know if I have posted at the correct section. Please feel free to move my post.
My question is very simple. I'm using an activex control to create barcodes inside word document. Actually I'm willing to do this by using VBA from Ms Access.
Let's say that the barcode object name is BRC1, with the property .datatoencode, just to add the appropriate alpharethmetic for barcode encoding.
So after adding a reference to Microsoft Word 11 object library, the code I use is :
Set APWORD = New Word.Application
With APWORD
.Visible = True
.Documents.Open Filename:="c:\Test.doc"
BRC.DatatoEncode = "123123" ' <----- RunTime Error occurs here
End With
APWORD.Quit
Set APWORD = Nothing
So I get a Runtime Error 24 "Object Required". :dunno
I'm using Windows XP, Access 2003 as also Word 2003.
Do you have anything in mind to resolve this situation ??
Thank you
I don't know if I have posted at the correct section. Please feel free to move my post.
My question is very simple. I'm using an activex control to create barcodes inside word document. Actually I'm willing to do this by using VBA from Ms Access.
Let's say that the barcode object name is BRC1, with the property .datatoencode, just to add the appropriate alpharethmetic for barcode encoding.
So after adding a reference to Microsoft Word 11 object library, the code I use is :
Set APWORD = New Word.Application
With APWORD
.Visible = True
.Documents.Open Filename:="c:\Test.doc"
BRC.DatatoEncode = "123123" ' <----- RunTime Error occurs here
End With
APWORD.Quit
Set APWORD = Nothing
So I get a Runtime Error 24 "Object Required". :dunno
I'm using Windows XP, Access 2003 as also Word 2003.
Do you have anything in mind to resolve this situation ??
Thank you