Cant find project or library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

whats wrong with this code:

For Each c In Me.Controls
If TypeOf c Is msforms.TextBox Then c.Text = ""
If TypeOf c Is msforms.ComboBox Then c.Text = ""
Next

... was working fine but now gives the above error message on execution.

Appreciate all help.
 
Try this:

Go to menu: Tools-> Macro-> Visual Basic Editor
(or use shortcut key: ALT+F11)

In your editor now go to menu: Tools-> References...
Upon clicking 'References...' , References - MenuToolbar box wil
pop-up.

In Available references, uncheck those all boxes which names star
with
'Missing' and click button OK.

Try running your macro again and see whether helps.

Cheers
ilyaskaz
 

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

Back
Top