Solved

Question on Excel 2003 and VBA coding

Posted on 2007-04-10
3
382 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 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