+ Reply to Thread
Results 1 to 8 of 8

Erase All my Macros

  1. #1
    Registered User
    Join Date
    12-10-2023
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Erase All my Macros

    Hi There, my name is Felipe.

    I am an advanced Excel user. I use and combine Macros with Power Query to manage databases and calculations. I have a problem with a file that I have rebuilt several times.

    For no reason, at any time, when opening the file the macros disappear, only the empty modules remain and the file is corrupted and no changes can be made, it cannot be saved, even though the file can be used without saving changes.

    Can anyone help me figure out what's going on? Thank you

    Document not saved.pngScreenshot 2023-12-10 142408.pngMessage from Excel.png

    Here Attached some image

    Macros_Lost.png

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Erase All my Macros

    I recently had similar occurrence here. I would fix the issue by rewriting the macro from the beginning, then after a few times of use, the workbook would become
    corrupted. I never discovered what was causing the issue. This necessitated the wiping clean of my computer ... reinstalling Win 10 and all my other software. So far things are good but I cannot distribute any workbooks to other computers because they dont function on the other computer. I'm still trying to find the solution to that issue.

  3. #3
    Banned User!
    Join Date
    05-03-2022
    Location
    HumptyDoo, Australia
    MS-Off Ver
    365
    Posts
    101

    Re: Erase All my Macros

    You could try 'Stellar Repair for Excel'. Free download and a lot of recommendations from people with similar errors to you.

  4. #4
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Erase All my Macros

    if you save your file as an binary file (=xlsb), is that better ?
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  5. #5
    Registered User
    Join Date
    12-10-2023
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Erase All my Macros

    Thank you Logit,

    I did the same procedure as you. Inclusive I have the same issue about sharing any workbooks to other computer, sometimes Run without problem, then from nowhere the problem returns, and erasing all my codes in the Modules. As you can see in the attachments, the left panel is empty, and I can't create a new module to write the codes. Write the code again in my case, will take to much time. I get a backup of my codes in a *.bas File, then I imported the codes, but the problems don’t stop here. The next problem is the Power Query tables and formulas, the emigrations of the Data duplicate some query and Parameters, cleaning up is too long.

  6. #6
    Registered User
    Join Date
    12-10-2023
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Erase All my Macros

    Thank you GameChanger,

    The App did not work, the macros were literally deleted, and who knows where they are.

  7. #7
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Erase All my Macros

    I feel your pain! Sorry to say I have no idea, but out of curiosity, is the file on a network drive or on your computer?

  8. #8
    Registered User
    Join Date
    12-10-2023
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Erase All my Macros

    well, actually is in my Computer, but when I had saved in Onedrive, the problem appeared faster

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to erase the name of a cell using macros?
    By luisfmb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2014, 12:41 PM
  2. [SOLVED] button erase dont erase an image inserted on an image control
    By Nuno Neves in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2014, 08:04 AM
  3. [SOLVED] Macros code to erase data
    By Brainstorm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2012, 09:06 PM
  4. Auto erase
    By messiah166 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-19-2011, 06:55 PM
  5. To erase certain texts
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-16-2008, 10:28 AM
  6. erase a macro
    By Martindelica in forum Excel General
    Replies: 2
    Last Post: 11-19-2007, 02:12 PM
  7. [SOLVED] Erase Code
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-04-2005, 03:06 PM

Tags for this Thread

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