Solved

Question on Excel 2003 and VBA coding

Posted on 2007-04-10
3
379 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
ID: 18884225
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
ID: 18884253


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
ID: 18884257


Thank you so much.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

863 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

22 Experts available now in Live!

Get 1:1 Help Now