+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    03-18-2010
    Location
    Richardson, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Converting Excel Macros 2003 to 2007

    Hi,

    We recently converted to Excel 2007 and now our macros does not work. The person who created it is no longer with the company so we can't have them edit it. Can someone help me convert the 2003 macros so it will work in Excel 2007?

    The macros is attached.
    Attached Files Attached Files

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134

    Re: Converting Excel Macros 2003 to 2007

    Welcome to the forum.

    What line falls over in Excel 2007?

    As a general comment, the code is worse than horrible.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-18-2010
    Location
    Richardson, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Converting Excel Macros 2003 to 2007

    I agree the code is really bad. When running it in 2007 it pops up run-time error 76 path not found. It highlights Open FileString3 For Append As #3 in the code. I put quotes around FileString3 and it accepted it. I ran it again, and it pulls up every FileString in the code. I put quotes around them all. Then at the end if pops up with error MsgBox ("The Program will HALT ** It did NOT FINISH ** - You must start over!") which is part of the code. I don't know how to fix it to make it work. The macros is designed to create work orders or "tickets" in another system automatically.

  4. #4
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134

    Re: Converting Excel Macros 2003 to 2007

    magan, you may find some kind soul who will minimally modify that code to resolve whatever 2007 problem it has. But if it's important, I'd suggest you get it rewritten by a consultant.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,447

    Re: Converting Excel Macros 2003 to 2007

    If you can't debug it yourself,at least post the workbook
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

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.2.0