Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Can't create an Object (Some sort of ActiveX thing?)

Hi,

In this code both statements:

Set a = New Acrobat.AcroAVDoc
Set a = CreateObject("AcroExch.AVDoc")

Fail.

I have the Adobe Acrobat 7.0 Library checked and AcroAVDoc shows up in
AutoComplete.

Is there some sort of rule that says some ActiveX objects can not be
instanciated?

Thanks.


Sub SearchPDF()
Dim a As Acrobat.CAcroAVDoc
Set a = New Acrobat.AcroAVDoc
Set a = CreateObject("AcroExch.AVDoc")
a.Open "C:\code\VBA-Transition_Guide.pdf", "szTempTitle"
Dim ln As Variant
ln = 1
b = a.FindText("VBA", ln, ln, ln) 'b is a boolean
MsgBox CStr(b)
a.Close (True)
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
Activex component can't create object Naveen New Users to Excel 1 September 4th 07 02:57 PM
ActiveX Cannot create object Nitin Bawsay Excel Programming 0 December 21st 05 12:39 PM
429 ActiveX can't create the object CA Excel Programming 2 March 29th 05 03:49 PM
error 429: ActiveX component can't create object GerryM Excel Programming 0 October 13th 04 05:53 PM
activex component can't create object with SAP 6.20 Mark Bigelow Excel Programming 0 July 22nd 03 06:24 PM


All times are GMT +1. The time now is 10:32 PM.

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

About Us

"It's about Microsoft Excel"