?
Solved

convert excel vba code from 2003 version to 2007

Posted on 2011-03-03
9
Medium Priority
?
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 1000 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 1000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 101

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

801 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