Solved

convert excel vba code from 2003 version to 2007

Posted on 2011-03-03
9
528 Views
Last Modified: 2013-11-26
I have an excel 2003 form with extensive VBA code and forms.  My agency is upgrading to Windows 7 with Office 2007.  My code doesn't work with Excel 2007.  Where can I go to learn the coding differences between Excel 2003 and Excel 2007.

I have found examples of specific code changes here on the forum - but, I can't find a general guide on what changes are necessary.  I need to start somewhere and have no idea where to look!
0
Comment
Question by:shaneaustex
9 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 35028009
Most code should work the same. Application.Filesearch has been removed (well, disabled) but other than that it's mostly stuff that has been added. The chart engine has changed but is, at least in theory, backward compatible although it has some strange quirks. What sort of problems have you run into?
0
 
LVL 22

Assisted Solution

by:rspahitz
rspahitz earned 250 total points
ID: 35028148
Yeah, the only problems I had were where I made calls to the 32-bit version in a Declare statement; it didn't work on the 64-bit version and I didn't know what the 64-bit signature looked like.  I guess I should check MSDN.com for that.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35028222
That would be 2010 rather than 2007, though?
Mostly just adding PtrSafe and converting any longs that refer to memory addresses to LongPtr.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 22

Expert Comment

by:rspahitz
ID: 35028528
Thanks Rory...I'll open up a separate question for you to help with that...
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35028666
I added this question for myself...linking it here since Shane might also find it useful

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_26861564.html
0
 

Author Comment

by:shaneaustex
ID: 35028857
I confirmed that my agency is going to Office 2007.  I am hoping there is a guide somewhere that explains the difference - then I could go through my code line by line and look for what needed to be changed...

This is difficult for me to trouble shoot while I'm at work (I'm a cop and only have my issued laptop with Office 2003).  So, I have to wait till I can get home and open the document in Office 2007 to explain the issues.  I was hoping I could locate a guide online, make the changes while I'm at work, and troubleshoot the changes at home.....
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35028967
Excel 2007 Help will tell you what's new but, to be honest, most of the code I have seen breaking, should not break - it's often chart related, and the fix usually involves turning screenupdating back on while processing the chart.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35275413
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

827 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