If you've declared an object to be of a certain type, your CreateObject call
must refer to that same type.
dim myApp as acrobat.acroapp
myapp=createobject("acrobat.acroapp")
or
dim myApp as acroexch.app
myapp=createobject("acroexch.app")
To be honest, I've never used Automation with Acrobat Reader, so I don't
know if either of those is actually correcte.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"YisMan" <(E-Mail Removed)> wrote in message
news:E610AB0A-736B-4D22-8A46-(E-Mail Removed)...
> how do i createobject for acrobat reader?
> this does not work
>
> dim myApp as acrobat.acroapp
> myapp=createobject("acroexch.app")
> --
> Thankfully, YisMan