Solved

Question on Excel 2003 and VBA coding

Posted on 2007-04-10
3
376 Views
Last Modified: 2012-06-21

Hello group,

I just used my application on a machine with the same Windows (XP) and same office version (2003) but the following code causes an error:


    With userFormDesktop.cbxYear
       
        .Font.Bold = True
       
        For nYear = (Year(Date)) To 1996 Step -1           <<<<<< can't find object or library
             .AddItem Trim(CStr(nYear))
        Next

Your help will be appreciated.

regards,
ak

   
    End With
0
Comment
Question by:akohan
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Calvin Brine earned 125 total points
Comment Utility
Take a look at your references in the VBA editor.  I think you may have some that show up as MISSING.  If they are required for the program, you will need to get the dll/ocx and register it.  If not, just remove it and try running the code again.

HTH
Cal
0
 

Author Comment

by:akohan
Comment Utility


Right. It was

               MISSING: fpdtc 1.0 Type Library.”

It unchecked the reference option and it is running well.

Thanks,
ak
0
 

Author Comment

by:akohan
Comment Utility


Thank you so much.

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now