? Office 2013 to support Excel 2003 (XLS) spreadsheets containing VBA CommandBars references

Thanks in advance for reading this and offering any wisdom you have! I am not an expert in any of the following, so apologies if off base.
The basic problem is: I need to use Excel 2013 to support Excel 2003 (XLS) spreadsheets containing VBA 'CommandBars' references which don't seem to work in Excel 2013. Details below.
Most of our users are still using older desktop windows PCs and Office 2003!  We are beginning to upgrade to laptops running Windows 8.1 with Office 2013.  Of course, we IT technical people are using the new laptops first. These new laptops are
64 bit.
Years ago, someone did a lot of development with spreadsheets here in Excel 2003 file formats that automates many activities and routines. Now we with the new laptops are having to support this development using new machines.
There is a basic compatibility issue that appears when first opening these Excel 2003 files that have VBA code that I'll detail below; I seem able to get by that problem.
The current problem appears to be that the existing Excel 2003 VBA code has many references to: "For Each bar In Application.CommandBars". As I've learned, the Application.CommandBars VBA functionality is focused on older MS Office versions' menu
commands, but "...Starting from Office 2007 the Fluent UI is used instead."  In other words, because MS Office isn't menu-driven beginning with version 2007 (uses 'the ribbon'), it appears that these references to: "For Each bar In Application.CommandBars"
create a basic incompatibility to opening these spreadsheets in Office 2013.
For a spreadsheet, after I resolve the issue detailed below and save it, when I reopen it I encounter error "Compile error: can't find project or library." 
For example, the following code snippet:
Private Sub Workbook_Open()
For Each bar In Application.CommandBars
        bar.Enabled = False
    Next
results in: "Compile error: can't find project or library." 
(Sorry, can't include images yet, I am not a VERIFIED USER of this forum yet.)
I went into VBE's menu: Tools>References and check for anything marked MISSING, which I deselected. But I am still receiving this error.
I don't want to get into changing the code a lot to support both Excel 2003 and 2013 (I am no VBA expert, just a dabbler).
And Microsoft officially says that Office 2003 is incompatible with Windows 8 although Application.CommandBars seem to be somewhat supported in Office 2013 .
Are you aware of a quick VBA workaround to get by this?
•I could comment out the validations, commands for: "For Each bar In Application.CommandBars" but then the spreadsheet code probably won't work for users using Office 2003.
Alternatives would be:
•Installing Office 2003 on my Win 8.1 64 bit laptop anyway, in spite of MS's saying incompatible, since this thread discusses at least one person has been able to use Office 2003
•Keeping one older PC with Office 2003 on it for us to support the old Office 2003 code until everyone upgrades their systems
Thanks
Basic compatibility issue that seems solvable:
Opening these spreadsheets displays this error:
Compile error:
The code in this project must be updated for use on 64-bit systems.
Please review and update Declare statements and then mark them with the PtrSafe attribute.
This seems resolvable by going into the VBA code and just adding element 'PtrSafe' where functions are declared; in other words, replacing VBA code "Declare Function" with "Declare PtrSafe Function" seems to get by this.

Hi Allan_L,
Please try the methods that provided above. And this is the forum to discuss questions and feedback for Microsoft Excel, your issue is related to Excel DEV, if you have further question, I recommend you post the question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.

Similar Messages

  • How to repair corrupt MS Excel 2003 (XLS) File?

    I have important MS Excel file data and unfortunately got corrupt due to virus attacks, so my crucial Excel sheet got lost, how to repair corrupt MS Excel 2003 (XLS) File? If have any solution please assist me.

    A corrupt excel spreadsheet can be repaired by using Open and Repair technique. It is a built-in repair function that opens a corrupt excel file forcefully. 
    *Open MS Excel > press Ctrl+O > locate corrupt excel spreadsheet and select it. 
    *Click on the arrow shown beside Open button > select Open and Repair. 
    It will take just a few seconds to be completed and selected file will be opened, if possible. 
    Or if this doesn't work, one may take help of a third-party Excel Recovery software. I would recommend
    Excel Repair Kit software to recover data from corrupt excel spreadsheet. The software is available with free demo version. To read more about this software and to download its free demo version, visit: http://www.excel.repair/

  • Windows 8.1 - Office 2013 - Visual FoxPro - excel data connection problems

    Hi i have an excel document with existing data links to a foxpro database. these links worked on windows 8 with office 2013 but since getting windows 8.1 the links no longer work.
    After much searching i have found i need to installed VFPOLEDBSetup.msi
    This does not fix the issue. The ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools still have no reference to FoxPro and within excel if i select from other sources and the other/advanced i can see the Microsoft OLE DB
    provider for visual fox pro but it crashes excel.
    in Windows 8 ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools i have listed two items Visual FoxPro Database and Visual FoxPro Tables but both these are missing in Windows 8.1.
    What do i need to do to correct other than not to use Windows 8.1
    Many Thanks

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    Thanks,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Office 2013 (Word, Outlook, Excel, Power point) are not responding after live update

    I had problems all last week with my Office applications not responding. I tried to uninstall and reinstall the software which did not solve the problem. I then did a samsung 5 recovery to factory state and installed office all over again which temporally
    worked. My computer then prompted a windows live update after which the same problem came back with windows application not responding.
    Please help as this is holding up my work.

    Hi,
    Please check your update patch list, if you had installed the Office 2013 SP1. please try to update the display card dirve. See the below thread:
    http://social.technet.microsoft.com/Forums/en-US/34401d63-6c3b-47e6-ab20-9ed9b70d890b/outlook-2013-sp1-unusable-since-sp1-update-?forum=officesetupdep
    Regards,
    George Zhao
    TechNet Community Support

  • Office 2013 x64 - Inserting Excel spreadsheet into OneNote

    Hi - I'm inserting an Excel Spreadsheet into OneNote, using the following commands (in OneNote):
    Insert > Spreadsheet > existing > (locate it) > insert Spreadsheet
    The Spreadsheet is inserted, but the "preview" below displays only upto the first 95 rows by 29 columns
    I only noticed this when I was exporting my TechNet Keys to XML, then into Excel, then Excel into OneNote, and noticed that the Spreadsheet preview only went down as far as "Visio Professional" i.e. it didn't show the rows with
    "Windows ... keys"
    Worse still, is that there seems to be no indication (eg. scrollbars), that Spreadsheet preview isn't showing all the data
    Is there any way to change this 95x29 cell preview? - I would like to see more rows (29 columns is way enough for me)  
    I've tried dragging the border, but that just resizes (zooms) the view
    I know I can click on the Excel icon, and open the Spreadsheet in Excel, and see all of it,
    but I like using the Spreadsheet preview (as it syncs to OneNote on my mobile, and is viewable without actually opening/editing the whole Spreadsheet)   
    - any ideas ?

    I realize this is an old post, but I came across it trying to solve the same problem and came up with a solution that might help others.  Hope it helps.
    If you define a Table in the spreadsheet, you can choose to display it in the OneNote and it will show the whole thing.  You can also define multiple Tables and choose to display them also.
    To create a Table in a spreadsheet:
    Highlight the area you want to show
    On the menu bar choose: Insert > Table
    Fill in a name (for example: TechNetKeys)
    Hit OK
    Save the spreadsheet and return to OneNote
    Right-click on the preview of the spreadsheet
    Choose "Select What to Display..."
    Uncheck "Display Everything"
    Uncheck "Sheet1" (assuming your Table is on Sheet1)
    Check "Sheet1 TechNetKeys"

  • Erreur Toolkit report Excel avec office 2013

    Bonjour à tous,
    J'utilise LAbview 2014 sur windows 7.
    Alors j'ai plusieurs programmes qui utilisent le toolkit de génération de rapport sous Excel.
    Ces programmes fonctionnaient parfaitement avec office 2010 mais suite à une mise à jour et au passage sur office 2013, le fichier Excel n'est plus remplie et mes programmes sont donc inutiles.
    Pouvez vous me dire d'ou vient cette erreur ? Que dois-je faire ?
    Merci d'avance

    Hi digital_badger,
    as you sure have seen in the link it is not officially supported by NI, which means to you one of the following things:
    1. You could upgrade your LabVIEW and your Report Gerneration Toolkit to Version 2014 and use MS Office 2013
    2. You could just try it with MS Office 2013 which might work but if it's not working you don't get any support from NI.
    Even if someone tried it already and it worked for him does not mean that it will work on your machines. It is possible that on some of your machines it could work but not on others. Their can be a lot of problems while playing around with unsupported setups.
    3. You could leave your setup as it is and stick to your MS Office 2010.
    I hope I could give you a good answer to your question

  • How Can I Import Contacts from Excel (XLSX/XLS) and CSV file to VCF File?

    Hi Friends,
    I have stored my all official and personal contacts list in the Excel (XLSX/XLS) spreadsheet and CSV file from long time. But now, I want to move my all contacts in an MS outlook 2013 and also Samsung S4 Contacts directory. But for this process, I require to import all Excel and CSV file contacts into VCF file format. So that, I could export vCard (VCF) file in the outlook and Samsung S4 contacts book. But I don't know about this process that how to import Excel and CSV file contacts into vCard format. If anyone has best solution to import and export excel or CSV file contacts into VCF file, so please share with me that information.
    Thanks & Best Regards
    Jackson T.
    <Edited By Host>

    https://itunes.apple.com/gb/app/csv-to-vcard/id713295900?mt=12

  • Office 2013 wixard runs every time in opening any document

    HI when i open any document in office 2013 standred edition (Excel,WOrd, One Note) configuration wizard runs everytime , uninstalled office 2 times, did a fresh installation.
    I have windows 8.1 64 bit  operating system on my dell laptop

    Hi,
    Please start Command Prompt and try to type the following command, and then press
    ENTER:
    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    Please also try the other methods listed in this article:
    http://support.microsoft.com/kb/2528748
    (Note: although the link applies for Office 2010 the steps should also be good for Office 2013.)
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Office 2013 and the KB3001652 update

    I am using a click-to-run version of Office 2013 on my 64-bit Windows 7 SP1 system.
    I do not allow Windows to update my system automatically. 
    Unless there is a good reason to do it more frequently, I use Windows Update every month to update my system manually.
    For the last three months (February, March and April 2015), Windows Update has offered KB3001652 (update for Visual Studio 2010 Tools for Office Runtime) as an important update. 
    At first, I didn’t know why this update was being offered. 
    I don’t have Visual Studio 2010 installed.  But I later learnt that Visual Studio 2010 Tools for Office Runtime comes as part of Office 2013, so KB3001652 appears to be a legitimate update for Office 2013. 
    However, I have still not installed the update.
    I have the following queries:
    Having installed a click-to-run version of Office 2013, I expected ALL updates to Office 2013 to be done automatically in the background. 
    In fact, I’m sure I read somewhere that no updates would come through the Windows Update route. 
    So why has this update come through Windows Update?
    Does anyone know whether the KB3001652 update to Office 2013 will eventually be done as an automatic update in the background? 
    If you inspect the April updates to Office 2013 in support.microsoft.com/en-us/kb/3050766, the highest numbered individual update is still only KB2965279, so it might be a few months yet before KB3001652 is included (assuming it will be, of course).

    Same problem here!. Giving the computer network access allows the control to be populated. Then I disabled and restarted and it seems to be ok....

  • Sequencing the MS Office 2013 for App-V 5.0 SP2

    Dear Frenz,
                     I'm referring to the following for Sequencing MS Office 2013,
                     http://support.microsoft.com/kb/2915745/en-us
    I got stuck at packaging the Application (\\server\Office2013\setup.exe /packager \\server\Office2013\Customconfig.xml\\server\share\Office2013AppV).
               Step 01:So far I have the downloaded and extracted the ODT in
    \\Server\office
                 Step 02:Downloaded the office application in
    \\Server\share
    Eg: office\data\.cab files are in \\server\share
                 Step 03:
    while packaging the application the below command is not working (its only showing the help options)
    \\server\Office2013\setup.exe /packager \\server\Office2013\Customconfig.xml\\server\share\Office2013AppV****************************************************************************************************** Kindly help me to understand, what I missing here.Regards,
    Julie

    Have you tried using a local path to create the package instead?
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • How to add shortcuts to user Start Menu and Taskbar or Desktop with using Microsoft Office 2013 Config file.

    Hello,
    How can i add the shortcuts for Office 2013 feature (Word, excel, ext) to the users taskbar or desktop with using config.xml file while installing the Microsoft Office 2013 from SCCM?
    I know how to do that with OCT, but i have another problem if i use OCT. So i have to do it with Config.file, but i don't know which code can i write on config.xml file to create shortcut on desktop or taskbar...
    Regards,

    Hi
    There is a known issue about
    changing the shortcut location for an Office 2013 application:
    When you try to change the shortcut locations for Office 2013 applications in the Office Customization Tool (OCT), you receive the following error message:
    Invalid start in folder. Please try again.
    Then, you add the Start in location for Office 2013 and run a customized installation. When you double-click the shortcuts that are displayed on the desktop, Configure shortcuts does
    not work and you receive the following error message: 
    Sorry, we couldn’t find your file. Is it possible it was moved, renamed or deleted?
    To work around this issue, type a single open bracket ([) in the Start in
    field.  
    In addition, refer to the link below on "Configure shortcuts" in OCT:
    http://technet.microsoft.com/en-us/library/cc179097.aspx#Configure_shortcuts
    Regards
    Tylor Wang
    TechNet Community Support

  • Printing causes Office 2013 applications to crash

    We’ve a fresh installed Windows 8 Pro and Office 2013. Printing works correctly in every application but Office 2013.
    Word, Excel, Outlook … printing causes the application to crash.
    Any idea if this is a known issue?
    Regards.
    Peter
    Peter Van Keymeulen, IT Infrastructure Solution Architect, www.edeconsulting.be

    This is the answer that fixes the problem every time, based on my experience and that of others. It works for both the 32 & 64-bit versions of Windows (I'm one of those odd ducks who runs 32-bit Windows 8.1 Professional and it worked perfectly for me).
    The problem is not Windows, either 7 or 8, it's Office 2013 and a variety of unique HP LaserJet printers.  By the way, the glitch occurs whether you use networked printing or a USB cable; I discovered that early-on when I
    was trying to troubleshoot the issue.  Also (and it should go without saying), always reboot the computer after you make the change to the driver.  Thanks to Shane, who apparently was the first one to discover the solution over a year ago, right
    after Office 2013 came out and the problem manifested itself.
    After lots of testing I have found a setting that has fixed all my HP CP5520 and HP M4555 printers that were crashing when printing from Office 365's 2013 pro plus.
    It's the driver setting in Device settings -> Installable options -> Printer Status notification, this needs to be disabled.
    I hope this also fixes other peoples problems.
    Shane

  • Office 2013 and Windows 7 Starter Edition

    Can you tell me if Office 2013 purchase via a HUP licence will work on a minibook with Windows 7 Starter Edition installed?

    Hi,
    Office 2013 is supported on Windows 7 Starter Edition, for more information about the System requirements for Office 2013, please refer to this article below:
    http://technet.microsoft.com/en-us/library/ee624351(v=office.15).aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • Can not open Excel 2003 embedded worksheet in Office 2010

    I have seen many similar issues to this but I think I have some unique factors that are making my issue a bit tougher to resolve. I have a user who has a word doc which he opens in Word 2010. This doc has several embedded excel sheets. When he tries to click
    one of these embedded excel sheets to edit he gets an error:  "the program used to create this object is excel the program is not installed on your computer". It will give an option to repair which we have tried but it makes no difference.
    Some things to note that I think makes this case more unique than others I have googled.
    This seems to be the case only with embedded excel 2003 spreedsheets. He can open newer excel 2010 spreedsheets that more more recently added to the file.
    He previously had Office 2013 which we had to uninstall, and put Office 2010 on. This was done because of a piece of software this company uses that was not compatible with office 2013. (Personally I think this may be where the problem is as there seem to
    be remnants of Office 15 in the registry.)
    I have tried the standard fixes of Disabling the Com add-ins, running office repair, and trying to Convert the embedded spreedsheet to an Excel Binary. The convert failed and gave me a generic error about possibly not being allowed to save to the location
    or needing more memory or space but none of these are the case.
    I have not yet tried to uninstall office 2010 and reinstall and I am hoping that I won't have to. This issue just seems odd to me. Other users can edit these embedded spreedsheets fine which is why I think it has something to do with the fact that he downgraded
    from 2013 to 2010.
    Anyone of thoughts, ideas, suggestions? Thanks.

    Hi,
    I noticed that use newer excel 2010
    spreadsheets that more more recently added to the file. Did you try to embed the Excel 2010 file to Word 2010 test? If it works fine, I suppose that it was a compatibility issue.
    Because Excel 2010 had change the file format with Excel 2003.
    I recommend you try to install Office 2010 sp2 and compatibility pack.
    http://blogs.technet.com/b/office_resource_kit/archive/2013/07/31/download-the-new-microsoft-visio-compatibility-pack.aspx
    https://support.microsoft.com/kb/923505/en-us
    And there is a similar issue, we also could install the hotfix to test.
    http://social.technet.microsoft.com/Forums/office/en-US/b0dc1e24-847d-44e9-95c5-f789a0d50047/cannot-edit-embedded-excels-after-closing-document?forum=officesetupdeployprevious
    Regards,
    George Zhao
    TechNet Community Support

  • Cannot open Office 2013 Excel, Word, PPT Files on Network Share

    Cannot open Office 2013 Excel, Word, PPT Files on Network Share
    I am having a problem opening any Office 2013 file when it is located on a network drive. I immediately get the error:  
    "Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.
    . To make more memory available, close workbooks or programs you no longer need.
    . To free disk space, delete files you no longer need from the disk you are saving to."
    It only occurs when I try to access the file when it is stored on a network share. I cannot open any word, excel or PPT files located on my file shares.
    I am on Windows 8 (pro), part of a local domain based on Server 2003, and have administrator rights to the domain and the file share where the Excel file resides (and Word files -same problem). If I copy the file locally, I can either open
    it directly, or right-click, go to Properties and 'un-block' the file and then open it. But it is impractical to keep doing this, as I edit different files from the directory tree all day.
    I have bing'd and google'd this extensively, and the only answers I come up with do not work, such as going into the DCOM config system and changing the user from interactive to launching user, or vice versa, or even using a specific user - mine
    with the password. Since the product is so young there aren't a lot of posts on this, and nothing has improved the situation.
    Can you add any insight to this? I really want to use Office 2013, but this is such an obstacle I'm going to have to downgrade if this problem cannot be resolved. Thank you very much for any help you can offer.
    Evan

    Dear Evan,
    If DCOM config solution did not work, I'd suggest narrow down the problem by trying to access another network share on another server, try to open an Office file there, do we still have the error? It could help us determine if the issue is on the client
    machine or the server side.
    Best regards,
    Daisy Cao
    Forum Support
    Please take a moment to "Mark As Answer" if they help.

Maybe you are looking for

  • One iTunes for two different iphones

    i have one computer and want to use mine and my wife's phone on this one computer. What i mean is that i want to use two diffrent iphones (with diffrent apple id) with same itunes (one computer) Many thanks

  • Selection screen data validation problem

    Hello all, Transaction FBL3N has an authority check on company.  If the user enters a company for which they have no authority, a message displays and they can then exclude that company.  The following steps can be repeated as many times as are requi

  • Local variable's VariableElement not accessible through treepath

    Hi, I'm extending TreePathScanner visitor to localize and handle certain annotations associated with variables of any kind (field, parameters and local variables). To do so I overrode the visitVariable method that, as far I understand, should be able

  • Working with multiple channels

    Hello I am writnig a vi in which I acquire data from a force torque tranducer who has 6 channels (ai0,ai1,ai2,ai3,ai4,ai5 for Fx,Fy,Fz,Tx,Ty,Tz respectively) what I see in the text file which I create is a matrix with 5000 rows (I took 500 samples) a

  • No audio device found on HP2000 notebook PC with Windows *

    Suddenly today I have lost sound on my HP 2000 notebook with Windows 8.  I have read several other posts of the same problem, but those "fixes" are not working on my laptop.  Please help.