VBA, OCX and system folders

  • Thread starter Clarence Klopfstein
  • Start date
C

Clarence Klopfstein

If this isn't the right place to ask this, please redirect me to that place.

I have written an OCX component that will scan from a scanner. When I
try to use it within VBA and Microsoft Word it fails.

I have narrowed it down to the fact that it is not being granted access
to certain folders.

So when it tries to access the ds file in the C:\Windows\TWAIN_32 folder
it errors out. Is there a setting that would allow my OCX to be called
from VBA, but still get access to system files?

Another folder that it cannot get access to is the users temporary
folder: C:\Documents and Settings\Administrator\Local Settings\Temp

This puzzles me because that folder is pretty generic.

Thanks,
Clarence
 
C

Charles Kenyon

Please do not multipost. This is posted as an individual post in numerous
vba newsgroups. Doing it this way wastes a lot of time. If it is necessary
to post in multiple newsgroups (seldom) please post a single message
addressed to all of the newsgroups at the same time. That way responses to
the messages show up in all of the newsgroups as well.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top