+ Reply to Thread
Results 1 to 2 of 2

Macros for different versions of Excel - within same file

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    1

    Macros for different versions of Excel - within same file

    Given:
    • Have existing Excel 2003 files with macros
    • Company is migrating to Office 2010, but will take minimum 1 year to complete entire rollout, therefore files will need to be able to be shared across versions.
    • Office Migration Planning Manager (OMPM – free tool from Microsoft) scan indicates 5% of Excel files will have macros issues.
    • Interviews with business to identify business critical files indicate ~20% of business critical Excel files have macro issues that cannot convert/upgrade without issue.

    Request:
    Can Excel 2003 files with macros be “updated” (whatever that may look like) such that upon opening the file a prompt will appear (or possible auto-detect) to determine the version of Excel being using, then only use macros compatible with that version?

    An example might help clarify the request:
    Person in HR using Excel 2003 opens a file Team_Expense_Report.xls (corporate template) and the macros within the file determine the person is using E2003 and run the applicable code. All existing buttons and calculations continue to work as they do today.

    Person in Engineering using Excel 2010 opens a file Team_Expense_Report.xls (corporate template) and the macros within the file determine the person is using E2010 and run the applicable code. All existing buttons and calculations continue to work as they do today.
    *We know the corporate template has macros that fail when using E2010. Can we now embed macros for each version of Excel within these templates that will function properly for each group?


    We have 15+ million Office files and ~100K files with macro issues so not everything can be fixed this way. But if we know we have a small group of files (I.E. corporate templates, budget forecasting worksheets) that we can apply this sort of “compatibility fix” to we would like to investigate the option.

    I would appreciate some comments or feedback.
    Greg

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macros for different versions of Excel - within same file

    Hello Greg,

    Welcome to the Forum!

    Migration issues are seldom simple as there many factors that can affect interoperability of the software. Depending on what these issues are, it is not always always possible to fix or workaround them.

    It might be possible to add immediate compilation code to the programs to "switch" the macros being used. This done very often with low level API (Applications Programming Interface) code to make compatible with different systems. This can quickly become a complex task, especially with all the macros you have. This fix may be slower than amending the code routines themselves to use code that is common to both platforms.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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