Share via

Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA)) in Excel, Access VBA not Working

Anonymous
2019-11-11T17:32:23+00:00

All files that conteins macros (VBA Projects) do not work, and ask me to recover it, and then automatically delete VBA codes, without being able to recover those codes or edit then.

I have done the following:

* Uninstall and reinstall Office 2010, complete, including the VBA (they are installed) (I used first 32 bits and then 64)

* Also I trayed to install office 2016, I've got the same problem

* Check that all VBA references are updated and installed (no missing objects or dll's)

* Macro security fully enabled

* I make a file with VBA macros from scratch, it works at that time, but when closing and lifting it again it appers the same error (VBA disappears).

* These files works perfectly in other notebook (with the same office and Windows)

Working with MSACCESS, all the databases that have VBA (inside the forms) do not work, it says it cannot find VBA projects.

* Try to repair the office

* Also re-install the Windows

* All Windows updates are loaded correctly.

Investigating a bit, it seems that the problem is not in the office, which is apparently an error in the update of Windows 10, but so far I find no solution, and I'm really desperate and in a hurry. What can I do, please. This problem appers 5 days ago

I am using Windows home 10 (1903), Compile SO 18362.449 64 bits

Kind regards

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2020-01-08T21:03:19+00:00

    This issue can be caused when you open a xlsm-file, with "wrong" language settings and there are "foreign" characters (like:  æ, å, ä, ü  ) in the variable or module names. Try to change language for non-Unicode programs in regional settings.

    Kind regards

    https://en.wikipedia.org/wiki/French_orthography#%C5%92

    https://en.wikipedia.org/wiki/French_orthography#%C5%92https://en.wikipedia.org/wiki/French_orthography#%C5%92https://en.wikipedia.org/wiki/French_orthography#%C5%92

    Was this answer helpful?

    40+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-11-14T18:20:59+00:00

    Sorry  I'm out of ideas.  I thought that password protecting the VBA code would do the trick at least.

    If you save the file to a memory stick - does the VBA still vanish?

    And tell me what happenes when you do this....

    1. You create a workbook with some VBA in it.
    2. You password protect the VBA
    3. You save the workbook but don't close it

    Is the VBA still there?

    I assume so, so

    1. Write something to a few cells in a worksheet.
    2. Save and close the workbook

    Wait 30 seconds and open the workbook with File/Open and not a double-click in Explorer

    Has the VBA gone?

    The cell entries you made - are they still there?

    If all else fails then put the hard disk through a check before doing anything else - using something like CHKDSK or WMIC just in case it's a FAT problem.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2019-11-12T16:06:47+00:00

    Suggest you check your virus scanner logs - I seem to remember that McAfee did this thinking it was a virus

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-11-14T16:47:35+00:00

    Thank you again GreyNewt, unfortunately steel with the problem, I hope I don't have to format the entire disk to re install all applications, in a business enviroment that is not a good solution, but if I do not find any other thing could be my last action.

    Kind regards

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2019-11-13T14:16:08+00:00

    LOL - no!  I use a different one myself.  But a good virus checker should be alert to dangerous macro code - specifically code that writes (which is almost every one).

    Interesting that it happens with Access VBA as well - which does point the finger at an external software.

    If I were you i would copy the files with VBA to the computers hard disk, disconnect access to the internet and disable the virus checker - then see if it still happens.

    Also - if you password-protect the VBA code then even a virus checker will be unable to access it - so try that as well.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments