1

I am about to work on an "older" program of a colleague. Testing it, I get an error message in the following line: (Format being marked)

Me.ComboBoxDistribution.AddItem Format(1#, "#,##0.00")

Error message is in german. I give my best translating it:

An object could not be loaded because it is not available on this computer

As if it wasn't enough the next error message is following:

Error while compiling: Project or library not found.

Is the Format Function just included in older Excel Versions? How can I fix this error? Thank you in advance.

9
  • Your code works fine on my version of Excel (o365 2016). Is this in a userform or in the sheet?
    – Tom
    Jan 24, 2019 at 10:10
  • 2
    No that's how I set it up - worked fine. It may be an invalid reference library. Check if you've got any 'missing' in your references
    – Tom
    Jan 24, 2019 at 10:17
  • 3
    VBA Console -> Tools -> References. That will list all the references in the project. Make sure there aren't any missing
    – Tom
    Jan 24, 2019 at 10:45
  • 1
    @J.schmidt Just a note: The tag basic is not really relevant for vba questions.
    – Pᴇʜ
    Jan 24, 2019 at 10:54
  • 1
    Oh ok! Dankeschön!
    – J.schmidt
    Jan 24, 2019 at 10:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.