FORMAT statement in 2003 Excel Macro

  • Thread starter Thread starter RidgeView
  • Start date Start date
R

RidgeView

I have several worksheets developed in Excel 2007 and have ported them to
computers with Excel 2003. In some cases the following statement works and
in others it does not. An example of the format statement is as follows:
SMth = Format(SecMth, "mmmm")
The macro will not compile because it gets hung up on the "Format" statement
stating that it cannot compile because either the Object or Library is not
found.
Like I stated, this statement does work in other worksheets.
HOW CAN I GET THIS TO WORK?
 
In VB Editor
Check Tools->References
It might be pointing to the Excel 2007 library (Excel12)
Change it to Excel11
 
In VB Editor
Check Tools->References
It might be pointing to the Excel 2007 library (Excel12)
Change it to Excel11
 
I finally found the following solution. In the VB Editor, the problem was
caused by a check mark in TOOLS/REFERENCE/"Missing.....". Once removed all
worked OK.
Thanks for your response.
 
I finally found the following solution. In the VB Editor, the problem was
caused by a check mark in TOOLS/REFERENCE/"Missing.....". Once removed all
worked OK.
Thanks for your response.
 

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