Excel 2013: Lost VBA Code From Excel 2010

Just upgraded from Office 2010 to Office 2013.
Tried to open several of my Excel spreadsheets created in 2010 with Excel 2013. I have spreadsheets that have VBA to perform several functions and routines.
None of the .xlsm spreadsheets from 2010 work in 2013. I get the following messages:
"The Visual Basic for Applications (VBA) macros in this workbook are corrupted and have been deleted. The macro corruption most likely exists in the current file. To recover the macros, open a backup copy of this file if you have one."
OR ...
"We found a problem with some content in '*******.xlsm'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."
Clicking Yes does not help. It removes or tries to fix the issue. Under the developer tab, the "Visual Basic" and "Macros" button is disabled.
I tried 3 of my different workbooks. They all get the same error. I went back to an Office 2010 installation and all the workbooks open file - without error, and the code executes.
Advice?

I'm getting the same problem, but with Excel 2010.
I've created a workbook with macros in Excel 2010 and couldn't run it in two computers with office 2010. The same problem as above occurs:
"The Visual Basic for Applications (VBA) macros in this workbook are corrupted and have been deleted. The macro corruption
most likely exists in the current file. To recover the macros, open a backup copy of this file if you have one."
This problem happened with other 2 workbooks with macro. It's curious too that another workbook with macro created by
me is working on these two computers without errors. And, of course, all of the workbooks mentioned works well in the other computers. This problem started when I downgrade the office os this two computers from 2013 to 2010.
None of the solutions proposed above has worked.
Any ideas?
Thanks in advance!

Similar Messages

  • How to migrate source code from TFS 2010 to a new TFS 2010

    Hi,
    Please help me, How to migrate source code from TFS 2010 to a new TFS 2010. we are using SQL 2008 R2 for DB storage and we have Backup of TFS DB. First TFS 2010 is live environment and second TFS 2010 is test environment both OS and SQL version is same. 

    Hi Pankaj0439,
    In general, to move TFS from a hardware to another, you can follow the steps as below:
    1. Check your permissions
    2. Back up databases and install software
    3. Restore TFS databases to the new hardware
    4. Update the configuration of the new application-tier server
    5. Verify permissions, notify users, and configure backups
    And you can also refer to this
    article in MSDN for more details.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to open Macro file in Excel 2013 but opens fine in Excel 2010

    Hello,
    Hopefully someone can help us.  We have a Macro Excel file created with Password Protected to open as well as to Modify.  The file opens fine in version 2010. However, in Excel 2013, we get an error message "Cannot run the macro "filename.xlsm'!QC'.
    The macro may not be available in this workbook or all macros may be disabled.  However, if we removed the password all together, the file can be opened in Excel 2013 without any issues.  We do NOT want to have the file without the password so any
    help is appreciated.
    Thank you in advance.

    Hi,
    Do you have the latest update of 2013, there has been changes in dec 2014 that causes problems with VBA code.
    Maybe that is also the reason here. See below link for more information.
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx
    Regards,
    Reshma
    Please Vote as Helpful if an answer is helpful and/or Please mark Proposed as Answer or Mark As Answer when question is answered

  • .xlsm File use from Excel 2013 64bit/Win7 64bit to Excel 2013 32bit/Win8.1 64bit - Component Removed (not API related)

    Work Environment:  Excel 2013 64bit/Win7 64bit
    Home Environment: Excel 2013 32bit/Win8.1 64bit (1 desktop and 1 laptop)
    I am developing an an .xlsm file at work (with Lists and a single form with controls linked to a worksheet ControlSource). It works and saves all day long just fine in my work environment. I save the file to either a USB drive (or DropBox - makes no difference)
    and then open the file on my home computer. I can open the file the first time with no problem and with no error messages. But then when I try to save the file Excel 2013 32bit most often tells me that it has removed a component. But it doesn't tell which
    component it has removed. After that, if I close the file and try to reopen it, it won't reopen. I get a series of error message: [1] file path errors (error 75) [2] Excel has stopped working errors. [3] Excel hasn't enough memory to complete the operation,
    [4] Excel will close. So I click the close button on the last error message and Excel disappears. I say disappears, because its not really gone. Mind you, its not listed in the Task Manager at this point. But, if I then click the Windows Taskbar icon to start
    Excel, Excel will sometimes automatically open up with the file that I was trying to open before, already up and running, i.e. I do not select the file to open it - it just appears. Other time Excel just repeats the series of error messages noted above.
    The strange part is, once this file has been corrupted, I can still take it back to my work environment, fire it up on my work computer, and it works just fine. No error messages, no saving problems.
    I have totally uninstalled and reinstalled Office 2013 (HUP Click to Run) on both my home computers and it makes no difference.
    I can say though, this is driving me nuts. Anyone have any suggestions or ideas?
    phillfri

    I think I solved the issue.
    Step 1: Moved all my code from the Worksheet_Open event to the Auto_Open Macro.
    Result: File would open from inside Excel but when opening by clicking on the file in Windows explorer I would get the error msg "There was a problem sending a command to the program."
    Step 2: Apply FixIt 20074. Note that to get this FixIt to work in Windows 8.1 you MUST save the FixIt file to your desktop and run it from there. If you follow the instructions on the FixIt page - download and run - you will get the error msg "This Fixit
    does not apply because the computer does not have the expected software (Excel.exe)."
    Excel 2013 definitely seems to have some bugs when starting a macro enabled file. I have seen other comments on the internet about the Excel workbook_open event actually failing to run all the VBA commands that are put into it.
    Environments:
    [1] Home: Microsoft HUP Click-n-Run Office Professional 2013; Windows 8.1, 64 bit; Excel 2013, 32 bit.
    [2] Work: Enterprise Microsoft Office Professional 2013; Windows 7, 64 bit; Excel 2013, 64 bit.
    phillfri

  • Extract image in PDF file - vba code in Excel

    Hi All,
    I am applying a solution for my company. We have some Front offices which receive customers' requests in paper form.
    We have one Back Office which is receiving the customers' original paper requests from Front Office via courier mail.
    To improve the efficency, I am trying to apply a solution which allow the Front Offices to scan the paper requests into PDF files.
    Those scanned files will be accessed by Back Office to process.
    Given the volume of the requests, it is impossible to open each file in the folder by clicking mouse.
    I have completed the tool (using Excel and vba ) which displays all of the requests (PDF files) as hyperlinks in Excel list.
    The requests are ranked with priority so that the Back Office people know which to process first.
    That solution works well.
    However, Back Office has just requested me to display certain fields in the PDF files as image in Excel's cells so that they can type the information to the system without having to open the PDF files.  The way that the images are displayed on Excel cells is an extraction of part of PDF page.
    I know that in Adobe Reader, I can use my mouse to select part of the area then copy to clipboard, so I hope that we can do the extraction programmatically.
    Could anyone can help me figure out how to implement above extraction solution in Excel vba?
    I am facing 2 concerns:
    1. Acrobat SDK:
    I don't know if my company purchased license of Acrobat SDK or not.  But when I open Excel VB editor, I can see in "Reference" menu the below items:
       + Adobe Acrobat Browser Control Type Library 1.0
       + Adobe Acrobat 9.0 Type Library
       + Acrobat Access 3.0 Type Library
    Are the above enough for my application?
    2. VBA code for extraction of part of PDF files:
    - What should be on the vba code for the extraction?  Which functions I should use?
    Thank you very much
    Cheers

    The functionality that you require is not available to VBA/COM - it is only exposed via C/C++.
    However, you could retrieve the ENTIRE page image to the clipboard and then use whatever VB/VBA methods you choose to grab a section of the image.
    Of course, this all assumes that Adobe Acrobat is installed on each person's computer that will be using the solution since Reader does not have the necessary APIs and Acrobat can't be installed on a server.

  • How to get active user data using vba code in excel

    Start with this script: http://community.spiceworks.com/scripts/show/1572-list-user-info-in-excel
    Then add an extra line to get the msDS-UserAccountDisabled attribute, or test for it in an If/Else block.

    Could you please help me to get only active user details from active directory using vba code.
    Any help would be immensely appreciated.
    Thanks in advance
    This topic first appeared in the Spiceworks Community

  • Running java code from excel

    Hi,
    I have a large comprehensive program written in Java and I would like to incorporate the answer in Excel... is there any way I can call the Java program from Excel, execute it and record the answer on an excel spreadsheet?
    Thanks,
    mbrolass.

    You could write a macro in Excel to call your Java program. This was addressed in a former thread: http://forum.java.sun.com/thread.jspa?threadID=689170&start=0&tstart=0
    Excel VBA Accessing Java
    http://j-integra.intrinsyc.com/support/com/doc/#javafromcom/excelvba2java.html
    In order to run this, you'll need to download and install J-Integra for COM.
    http://j-integra.intrinsyc.com/downloads/

  • Excluding VBA codes from grammar & Spell checker in word 2013

    hi Guys
    i am learning VBA & i write my notes & my exercises in a word document.
    the problem is Grammar & spell checker shows VBA codes as errors.
    i don't want to completely disable checker. is there any method or Add-on so that we introduce Correct VBA codes as correct sentences to word 2013 so that it doesn't show them as errors ?
    thanks in advanced

    i tested it but i noticed an strange behavior. it sometimes works but sometime doesn't. or sometime partially works.
    for example i have defined a box as a border around the selected Area. this applies but although i have selected "do not check spelling or grammar" , system again shows spelling & grammar errors as you see in the screenshot. it's seen even
    after i reapply style. any further help please?
    Your screenshots have far too little resolution to see anything meaningful. I cannot see what Style you're applying the attributes to, or how you're using that Style. If you're applying the Style to text that's already in the document, you may need to run the
    spell-checker to clear the 'error' underlining that was already there.
    Cheers
    Paul Edstein
    [MS MVP - Word]
    i have created the "NOGrammarSpellCheck" Style correctly.
    yes i had written some VBA codes in my doc, then i created my "NoGrammarCheck" Style & Applied it on the selected Exiting codes. but again errors are shown. i noticed that when i again click on my style to apply, know errors disappear.
    so i found that if codes exit before, we must apply the
    "NoGrammarCheck" Style Twice so that it completely be applied.
    but if we Apply the style on a blank area in word doc & then paste our VBA codes in that Area, now everything is ok & no grammar or spell check is shown.
    am i correct ?

  • Disconnect all active Essbase connections using VBA code in Excel

    Hi All,
    I am currently using the below code to disconnect the active essbase connection. It works fine but it shows me a windows with the list of active essbase connections and I have to select each essbase connection and click disconnect. I want a vba code which will disconnect / kill all active connections of Essbase at one go. for e.g. I have 10 worksheets connected to different databases in Essbase. I want a code which will disconnect all 10 sheets at one go. Please expedite. Thanks for your help in advance.
    Private Sub MDisConn()
    On Error Resume Next
    EssError = EssMenuVDisconnect()
    ErrorBox
    End Sub

    Hi,
    You could use EssVDisconnect which takes a sheet name and does not open the disconnect login box.
    Declare Function EssVDisconnect Lib "ESSEXCLN.XLL" (ByVal sheetName As Variant) As Long
    Sub DisConn()
    X=EssVDisconnect("Sheet1")
    End Sub
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • From database to excel and back to database from excel - how?

    Environment: db 8,10 server (HPUX), IAS (SUSE), forms6i,10+report6i,10
    On principle there is no problem to get data from database to excel but there is the problem how to get data from excel back to database. I don't have intention to use APEX. The goal is to move the cursor to certain row in excel sheet and depends of data in this row call Oracle form in query only mode. Here is the solution to write URL into the excel cell but still exists the problem how to reduce number of session because each call of the form open the new session what I don't like to do.
    Thanks for purposes!
    m.

    Inolau, I'd like to open form between watching excel sheet depends of data in excel. For example:
    Cells:
    A B C
    1. 1 2 3
    2. 4 5 6
    When I put the cursor on B:2 cell I'd like to open a form. After this I'd like to put the cursor on cell C:1 and I'd like to open the same form again. All in one session.

  • SharePoint 2013 - consuming service applications from a 2010 farm?

    Hi all,
    This question relates to both SharePoint 2010 and SharePoint 2013. Does anyone know whether it is possible/supported for a SharePoint 2013 farm to consume service applications from a 2010 farm (search/UPS etc. via SA publishing)?
    There’s obviously plenty of documentation explaining how this would work the other way around (2010 farm consuming SA’s from a 2013 farm). Unfortunately, I haven’t found that much info on the scenario I’ve described above.
    Many thanks
    Matt

    I don't know that it won't work, but in the article dealing with upgrades MS specifically recommends upgrading Services Farms first when upgrading mixed installs.  So you should be able to share a 2013 service with a 2010 farm, but not the other way
    around.  You can read about it here:
    http://technet.microsoft.com/en-us/library/cc303435(v=office.15).aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • VBA Code for Excel Add-in Menu Items

    Howdy.
    Every month my team needs to execute the same process on a couple hundred documents. It's time consuming and inefficient to say the least, so I'm looking for a means by which to call a couple of the menu items on the Excel BPC Add-Ins menu via VBA. Specifically, Park'n'Go; Expand All; and Send and Refresh Schedules.
    Basically what happens is this:
    Open File
    Set Park'n'Go to Live
    Expand All
    Refresh and Send Schedules
    Set Park'n'Go to Offline
    Save
    Exit
    Loop
    I know how to loop through the files and directories, I just don't know the commands for the functions from the menu via code. The macro recorder can't help me, and I've even tried to mimic a user's actions by using mouse coordinates and clicks, but that doesn't work b/c it doesn't allow for the necessary load time from BPC.
    Any help would be extremely appreciated.

    Hey Jeff,
    here are some vba commands that may help you.
    Open a certain file: (you can assign "Path" to a button or range)
    Dim Path As String
    Path = Application.GetOpenFilename("All Files (.),.")
    Opening the Park 'n Go dialog box:
    Application.Run ("MNU_ETOOLS_PARKNGO")
    Expand All:
    Application.Run ("MNU_ETOOLS_EXPAND")
    Sending data and refreshing the workbook:
    Application.Run ("MNU_eSUBMIT_REFSCHEDULE_BOOK_REFRESH")
    Saving a file OFFLINE:
    Dim FName As String
    FName = InputBox(prompt:="Please enter filename")
    If FName = "" Then
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Else
    ActiveWorkbook.SaveAs Filename:="c:\" & FName
    ActiveWorkbook.Close
    End If
    Application.DisplayAlerts = True
    Hope, that will help you
    Karsten

  • How to open vba code in excel on Mac Air?

    Some one sent me an xlsx file produced on VBA. On a PC you can access the code with Alt F11 but that does not work on Mac.
    There must be an alternative procedure.  Thanks in advance for a suggestion.  I am on OS X Lion

    If you have Excel 2011, you enable the Developer Ribbon, then you'll have access to the VB Editor:
    http://excelsemipro.com/2010/11/excel-2011-for-mac-installation-preferences-and- vba/
    I do not know how "complete" the VB is in Excel 2011 because IIRC, previous versions of Excel for Mac did not have VB.

  • Kann man mit "Adobe Acrobat STANDARD XI" Formularfelder automatisch per VBA-Code aus Excel heraus füllen oder benötigt man dafür "Adobe Acrobat Professional XI" ?

    Hallo,
    in unserer Firma hat das automatische Ausfüllen von PDF-Formularen in der Vergangenheit wunderbar funktioniert. Dabei wurde per Visual Basic Code der Inhalt von Excelzellen oder auch Excelnamen automatisch in ein PDF-Formular übertragen und die Datei im Anschluss in einem bestimmten Verzeichnis abgespeichert. Jetzt wollen wir auf Adobe ....XI updaten und wissen nicht, ob wir die Standard- oder die Professionalversion benötigen, um dieselbe Funktionalität in Bezug auf das erwähnte Vorgehen zu erhalten.
    Weiß jemand da mehr als ich?
    Also...
    ...reicht Standard?
    oder
    ... muss es Professional sein?
    Gruss und Danke im Voraus,
    Andreas

    Hallo,
    Danke, aber auf der Seite war ich schon und die hat meine Frage nicht eindeutig beantwortet, da ich nicht weiß, unter welchen der Stichpunkte mein Problem / meine Aufgabenstellung fällt.
    Ich vermute, dass die Standardversion reicht, aber bevor wir 5 Lizenzen davon kaufen, wüsste ich gerne, ob es funktionieren wird.
    Und könnte man zur Not die Standardversion dann zur Professional upgraden, auch auf einem Terminalserver?
    Andreas

  • Excel 2013 Problem: couldn't open excel files-Notice: There isn't enough memory

    1. This occurs only on my Lenovo laptop.2. The total RAM is 8GB, and the operating system on this laptop is 64-bit.3. Windows 8.1 + Office Professional Plus 20134. After a fresh boot, I still get this message when using Excel spreadsheets ONLY.5. This just happened now with spreadsheets successfully used over a period of time.6. Even when I try to open a blank file, this message pops up.Actions taken:1. Increased virtual memory size from 1408 MB to 4586 MB, nothing changed.2. Scaned the computer by ESET NOD32 Antivirus, no virus is found.3. I copied the Excel files and run them on another laptop (COMPAQ+windows 7+32bit operating system +4gbram+excel2010), no problem, althought it's slower.Your help on this problem will be highly appreciated.
    This topic first appeared in the Spiceworks Community

    so i set up this bit of a lab network in packet tracer. (will set up a more complex lab once this little bit is working right). See imageI've got the following172.16.1.0/24 on the left172.16.2.0/24 on the right172.16.4.0/24 serial link between the two routersThe host PC's can ping each other, across the "pond". they can also ping the router interfaces. the routers can ping each other and the hosts. the only goofy thing is, i can't ping the switches on the opposite side from the router or hosts. I can ping the switch from within it's own subnet but not from afar.the switches also can't ping the serial port IP's of the router on it's own side. (example, switch on the left can ping 172.16.1.1 but not 172.16.4.1I've set up static routes on both routers, and what I believe to be the proper default gateway routes on both switches. Maybe it's...

Maybe you are looking for

  • Usbs don't fit into usb ports

    There are 2 usb ports on my laptop but neither of them fit any of the usb sticks or connectors that I have that fit evey other machine i have used, do i have to use some sort of adaptor? This question was solved. View Solution.

  • Auto approval process in workflow

    Hi, We are implementing customized workflow with approval/rejection process There should be a auto approval process when agent does not complete task within 3 days. When the approval is done then we are sending emails and performing some actions. Whe

  • Pop up error message while material posting

    Hia, how can i pop up error message while material posting based on user . thank u in advance

  • Can  I use iPhoto to refer to offline photos?

    I keep my photos on an external HDD (because of the huge number; they will not fit on my notebook computer's hard drive). They are mostly 3000x2000 and larger. However, I would like to be able to view thumbnails in screen-size resolution on my Mac, i

  • I need an exact RGB color but it changes when I re open it!

    I need an exact RGB color and then save my JPG. When I reopen, it's off! I've tried a number of color settings but so far no luck. My PNG file maintains the color; just not the JPG file.