+ Reply to Thread
Results 1 to 10 of 10

Removed Records: Object from /xl/worksheets/sheet3.xml part

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    57

    Removed Records: Object from /xl/worksheets/sheet3.xml part

    I am having a problem with the create new worksheet code. Every time I create a new worksheet, save and close, an error message "Removed Records: Object from /xl/worksheets/sheet3.xml part" appears when i reopen the file. What went wrong with my code? I did used
    Please Login or Register  to view this content.
    for a few lines. Could this be the source of this error?

    The sample provided is before creating any new worksheets. Everything is fine till a new worksheet is created, saved, closed then reopened.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    Does your file have a custom ribbon defined? This generally pints to invalid references
    I'll check your file but this is just the first thing that comes up
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    You've got an invalid macro reference to the button Lock/Unlock the rest I don't know
    Please explain it a little better

  4. #4
    Registered User
    Join Date
    09-20-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    57

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    Hello Keebellah..
    I do not have any custom ribbons..

    As for the lock/Unlock button, it works like normal.. The only problem with the lock/unlock button is that the image is gone when a new worksheet is created, however, the button still functions normally.. I have removed it from the macro so that any reviewer could focus on the create new worksheet macro.. the macro for the lock/unlock buttons are as follows:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    The create new worksheet macro works perfectly.
    About the lock/unlock button, why is the image disappearing? You could create place an image as button.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    I see what you meant. the issue is the Luck/Unlock button. THAT's the item that's being removed and causes the problem after you create a new worksheet

  7. #7
    Registered User
    Join Date
    09-20-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    57

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    Thanks for pointing what what caused the error. And all the while I thought that the error came from my code. How do I fix this error?

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    Change the button to an image and link the macro to that

  9. #9
    Registered User
    Join Date
    09-20-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    57

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    It works now.. thanks Keebellah..

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Removed Records: Object from /xl/worksheets/sheet3.xml part

    Great
    Happy Holidays and happy coding for 2021
    Don't forget to mark the post as Solved (under Tools)

+ 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] Removed feature: Data validation from/xl/worksheets/sheet1.xml part
    By Gaellus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-01-2021, 02:21 PM
  2. Replies: 1
    Last Post: 11-03-2020, 02:51 PM
  3. [SOLVED] Using a listbox response as part of the worksheets object.
    By Gordonmyles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2020, 10:06 AM
  4. Errors were detected in file - removed records
    By dlanebc83 in forum Excel General
    Replies: 1
    Last Post: 01-24-2019, 12:07 AM
  5. Removed Records: Sorting from /xl/worksheets/sheet24.xml part
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2015, 01:42 AM
  6. Replies: 0
    Last Post: 05-24-2013, 10:58 AM
  7. xlm removed records error message upon opening
    By sportsguy in forum Excel General
    Replies: 0
    Last Post: 04-18-2012, 10:27 AM

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