+ Reply to Thread
Results 1 to 6 of 6

Excel 2003 vs Excel 2008 - VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Excel 2003 vs Excel 2008 - VBA

    Hey guys,


    Currently, some people of my company have Excel 2003 and others have 2007 or 2010. There are some macros already created for 2007 but since we are going to update the company's system and thus the Excel version to 2010 some of the macros will not work. Currently they dont work also if I try to run macro created in 2007 on 2003 Excel version. It pops up a messaage Compile error- project or library missing.

    When I go to references I can see for example Outlook 12.0 Obj. library missing and a couple of more. What should I do to fix the problem so I can run macros created in 2007 or 2010 to 2003 and vice versa?

    Thank you

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Excel 2003 vs Excel 2008 - VBA

    Hi - My understanding is that 99% of 2003 version macros should work in 2007 or 2010. However 1% doubt is for the 9 object models that have been removed in 2010 (I recall some changes were made in reference libraries as you also pointed out). Incase you are using some of these models that have been removed I believe you have no option but to replace them with the new ones. See the link below that highlights "Potentially Impactful changes in 2010"

    http://blogs.technet.com/b/office_re...ect-model.aspx

    Hope this helps...
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,334

    Re: Excel 2003 vs Excel 2008 - VBA

    Hi,

    And from Kbkumar's link above I find http://www.microsoft.com/en-us/downl...ng=en&id=15001 which claims it will check the compatibility between versions to tell what has changed.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Excel 2003 vs Excel 2008 - VBA

    Ok..I understand..but lets say I go to references and in my case it says Outlook 12.0 Object library missing, since my 2003 excel has Outlook 11.0 Object library then how can I replace with the newer version? I am going to replace everything that says is missing with newer versions but do I do it?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,334

    Re: Excel 2003 vs Excel 2008 - VBA

    Replacing all old .dll with new ones would be one way to do it.

    My understanding is that when you write VBA code you do things like Format(Expression,[Format],First day of week, other stuff) using your older version of Excel. Then you try to use this VBA command with a newer version of excel where the parameters have changed or improved with the newer version. The newer version doesn't know how to deal with the older parameters.

    If you can find, in your code the command that is the old one and replace it with the newer one you shouldn't need to change the references to that DLL.

    I hope this makes sense. This is my understanding about old and new references and how they work/improve and need to be upgraded.

  6. #6
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Excel 2003 vs Excel 2008 - VBA

    Should I replace all DLL files from say Excel 2010 into the |Excel 2003 folder? Please elaborate on that. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1