Visual Basic Error

B

Bill

Hello

I have a macro that runs well on different Excel versions. But I came
across the following message on Windows XP.

"component not correctly registered" followed by Microsoft Visual Basic
error 336 not expected.

Any ideas? Thanks.

Bill
 
D

Dave Peterson

Are you using any non-excel components (like on a userform)?

If yes, maybe re-registering them with windows would help:

windows|start button
regsvr32.exe pathandfilename.xxx

If no, maybe reregistering excel would help:

Close Excel and
Windows Start Button|Run
excel /unregserver
then
Windows Start Button|Run
excel /regserver

The /unregserver & /regserver stuff resets the windows registry to excel's
factory defaults.
 

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