+ Reply to Thread
Results 1 to 9 of 9

Can't remove a link with pop up each time I close a file

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    33

    Can't remove a link with pop up each time I close a file

    Hi all,

    I inherited a file that has a weird link that I can't seem to remove.

    Each time I close the file, it has a popup which says something like:

    "Cannot find F:\winfcd\NGBEBUD.xla[ngbebud'!autocloseauto_c, which has been assigned to run each time dummy.xlsb is closed. Continuing could cause errors. Cancel closing?"

    This is what I've tried to remove the problem...

    -inserted a blank tab and deleted ALL other tabs.
    -viewed the "This workbook" in VBA to see if there was any autoclose code
    -viewed all vba modules for any code and there is none
    -done a search on each tab for links

    None of this has helped and the file is also far bigger than it should be like there are hidden tabs, but there aren't.

    I'm happy to upload the stripped out file, but don't know how to attach it to this post.

    Thanks for any help.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    One more thing to check: Named Ranges.

    Here is how to attach a file

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Can't remove a link with pop up each time I close a file

    Hi all,

    I checked for named ranges and it didn't help.

    I've now attached the file.

    Thanks for any help.
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    I opened the workbook and I closed it and I did get the message. What's even more amusing is that I saved it as a non-macro enabled file XLSX and I still get the message. I didn't think XLSX files could run macros!

    I also agree that it's about one MB bigger than it should be.

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    I have a new error message. I changed the file to a ZIP extension and opened it and looked at the XML code (not that I know much about XML) and I removed all the external links I could find. I renamed it with an XLSB extension and I got an error message stating that it was repairing the file. When I closed it I got a new message as shown in the picture. Progress of a sort I guess. I'll take a look at the external links instead of deleting them next time.
    Attached Images Attached Images

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    P.S. This leads me to believe that the file was damaged at the XML level. I am almost certain that I can't figure out how to fix that, but I'll see what I can find when I poke around tomorrow.

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    If you change the extension on the file to ZIP, you can download the archive and look at the XML code behind it.

    In the folder xl, there is a sub-folder called externalLinks.

    In this folder, there are a number of bin files. I am not sure what these are or how to open them.

    Also in this folder is a sub-folder called _rels

    In this folder are XML files that correspond to the bin files in the parent directory.

    File #13 looks like the text file that is attached.

    Which is our "smoking gun."

    If you play with the XML code in these directories you can recompress the archive, slap an XSLB extension on it and launch Excel again.

    I tried playing with file 13. I deleted both the bin and rels files and Excel crashes. I tried replacing both files with a copy of another file and Excel crashes.

    I deleted all the external links and the file got a lot smaller but still crashes with the error message shown in the previous post.

    I now know where the error message is coming from. I don't know why it causes the crash or how to fix it.

    FYI: these "links" don't show up even with a VB scan for links.
    Attached Files Attached Files

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Can't remove a link with pop up each time I close a file

    OK, I don't know what I might have destroyed in the process but this is what I did.

    I made a compressed version of the workbook (New Dummy.zip). I also created a completely new workbook called Clean.xlsb. I made sure this workbook has two sheets since the original workbook has two sheets. I compressed this workbook (Clean.zip)

    I extracted both workbooks to their appropriate directories. New Dummy and Clean. I navigated the xl folders on both directories. I copied / pasted the worksheets folder from New Dummy to Clean replacing the directory that was already there.

    I went back up to the root level of the Clean Folder. I compressed the contents into a new ZIP file. I changed the name of this zip file to "New.xlsb." I launched the file and got some error messages to repair the file. One of the things lost was the print settings. I saved the file and closed it. It closed OK. It now opens OK.

    The file now is also down to a reasonable size. I don't know what else got lost. Clearly any VB code might have gotten lost, but that can be "transferred." I don't know about table definitions and named ranges. I bet they are gone too. I imagine if I looked for these pieces, I could copy them over. I do think I got the pages and formulas. I noticed that I lost the sheet name and formatting.

    On second thought it just might be worth while to write a VB cloning program: create a blank workbook, go through each sheet on the bad workbook, copy paste the whole sheet into the new workbook. Hopefully the "infection" is in the workbook and not the worksheets.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Can't remove a link with pop up each time I close a file

    Dflak... you are amazing.

    I super appreciate all the effort you put in to try and find the problem. It is a weird one for sure.

    Thanks so much again.

    Have a great day.

+ 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. How to remove the 'modify' password, save the file and close?
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2018, 03:22 PM
  2. Excel file to close in specific time
    By aviko150 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2016, 09:42 AM
  3. [SOLVED] want to retain the cell value but remove vlookup formula or link to the source file
    By SaudiMujahid in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-26-2013, 03:02 AM
  4. Open every file in the folder, remove merge and wrap, save and close files
    By abdesai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 04:58 PM
  5. How to remove the not necessary link in the excel file?
    By otterandrews in forum Excel General
    Replies: 2
    Last Post: 01-23-2013, 11:12 PM
  6. Close File On Network After a time delay
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-27-2009, 09:20 AM
  7. Close & save a file at set time only IF the file is open
    By Clivey_UK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2006, 01:19 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