+ Reply to Thread
Results 1 to 3 of 3

VBA Code disappeared

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    VBA Code disappeared

    Hello together,

    I am just discovering a very new issue for me. Never i got something like this.
    I was developing a tool for our companies associates for data entry. Every associate has his/her own file. This Excel file (.xlsm) contains only some very hidden sheets with info for comboboxes and for some calculation with charts. The user only gets a userform on opening the file with a blank sheet as background. The user then fills the fields in the userform and with a submit button the data will be send to a SharePoint list. This all is ok and runs perfect.
    Now the issue. Some users had the problem that after some days using suddenly the file opens with the blank sheet only. No userform starts. After opening the file on my PC for check I discover same. Then I opened the VBA editor. All the modules are still in the project explorer visible but if I check for the code the code window remains empty. Means, the code disappeared and so the file is no more working.
    Did someone ever discovered same or similar problem? The strange thing is, that it happens only for a handful of user. the most have no issues with the tool.
    For any hint I would be very grateful.
    Greetings

    Tor


  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: VBA Code disappeared

    Does the userform name appear in the Projects box at upper left of the vb editor screen? Does the macro name appear in the dialog box when you click Tools>Macros on the editor Tool Bar? Were any software updates run on the workstations which have the problem? The answer to these questions could provide clues to what happened to the code. The code woould not disappear on its own accord. It had to be removed by some external action. If the IT people were performing upgrades to equipment or software, they could have inadvertently caused the problem.
    Last edited by JLGWhiz; 09-18-2020 at 09:52 AM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: VBA Code disappeared

    if you go alt + F8 do you see any macro names?

    Interested to see if the vbaproject actually still has any data in it at all or if it is gone.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

+ 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] Code Tags and other Icons have disappeared
    By jaslake in forum Suggestions for Improvement
    Replies: 2
    Last Post: 02-13-2016, 10:53 PM
  2. It Disappeared!
    By NanC29 in forum The Water Cooler
    Replies: 1
    Last Post: 08-13-2011, 10:21 PM
  3. UDF disappeared
    By deadpickle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2011, 11:35 AM
  4. Worksheet just disappeared
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2006, 06:45 PM
  5. Charts Disappeared ??
    By boomfox in forum Excel General
    Replies: 0
    Last Post: 03-15-2006, 07:33 AM
  6. VBA code disappeared when open workbook in other computer
    By xuanzhiyi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2005, 12:54 AM
  7. [SOLVED] Add-in disappeared
    By fiona in forum Excel General
    Replies: 2
    Last Post: 02-10-2005, 08:06 PM

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