• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

removing pesky hidden xml sheets in a workbook|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / removing pesky hidden xml sheets in a workbook|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…removing pesky hidden xml sheets in…
sp_PrintTopic sp_TopicIcon
removing pesky hidden xml sheets in a workbook
Avatar
Stacy Culpepper
Member
Members
Level 0
Forum Posts: 6
Member Since:
March 6, 2023
sp_UserOfflineSmall Offline
1
March 25, 2023 - 2:31 am
sp_Permalink sp_Print

I have a few plain vanilla excel files with 5 worksheets.  I am trying to automate a process in ArcPro and it bombs out because my Excel files have a hidden sheet in xml format that it rejects.  I tried removing them using a snippet of VBA, didn't work.  How on earth do you get rid of these things??  2 attachments, one is the file, the other is a view inside ArcPro of the pesky worksheet.

 

Thanks so much,

StacyPeskySheet.jpgImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage PeskySheet.jpg (40 KB)
sp_AnswersTopicSeeAnswer See Answer
Avatar
Stacy Culpepper
Member
Members
Level 0
Forum Posts: 6
Member Since:
March 6, 2023
sp_UserOfflineSmall Offline
2
March 25, 2023 - 2:33 am
sp_Permalink sp_Print

I forgot this file too..

Stacy

Avatar
Hans Hallebeek
the Netherlands
Member
Members


Trusted Members
Level 0
Forum Posts: 185
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
3
March 26, 2023 - 1:03 am
sp_Permalink sp_Print

Which Excel version?

Avatar
Stacy Culpepper
Member
Members
Level 0
Forum Posts: 6
Member Since:
March 6, 2023
sp_UserOfflineSmall Offline
4
March 27, 2023 - 12:44 am
sp_Permalink sp_Print

Hans, 

I'm using Office 365, (Build 16130.20218).  And I've tried on Excel 2016.

Avatar
Hans Hallebeek
the Netherlands
Member
Members


Trusted Members
Level 0
Forum Posts: 185
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
5
March 27, 2023 - 4:12 pm
sp_Permalink sp_Print sp_EditHistory

Hi, I'm using 2021 and I suppose ArcPro is some kind of compression and decompression like winzip.

If you look inside the files in Excel they're ALL xml files and that's the way Excel is built so if you 'remove' this 'persky file your Excel file will be corrupted 

The xls file you attached (older version) does not contain xml files because that's not the new structure of Excel, the xml structure was introduced wirh 2007

Why do you need to get rid of it?

Avatar
Stacy Culpepper
Member
Members
Level 0
Forum Posts: 6
Member Since:
March 6, 2023
sp_UserOfflineSmall Offline
6
March 27, 2023 - 9:53 pm
sp_Permalink sp_Print

Hans,

No, ArcPro is the internationally used GIS (Geographic Information System) software platform.  It matters not what version of Excel file it is, I've done 365, 2016, and 2007; they all have this xml sheet IF you put a filter on any sheet.  Even if you remove the filter, the xml remains.  I can copy each individual sheet into a fresh new file, save it and there are no xml hidden sheets.  See attached images.  1. is a problem, 2. is a problem, 3. is exactly as it should be. 

Each version file with the problem gives it a different name: FilterDatabase or xmnm#FilterDatabase.  So, my correction; they aren't xmls but they are xlnm# objects.  But the point is, I need them removed and not in the file itself.

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 689
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
7
March 27, 2023 - 10:39 pm
sp_Permalink sp_Print

They are defined names. You can delete them with some code like this:

 

Sub ClearNames()

Dim nm as name

On Error Resume Next

for each nm in activeworkbook.Names

nm.delete

next nm

End Sub

sp_AnswersTopicAnswer
Answers Post
Avatar
Stacy Culpepper
Member
Members
Level 0
Forum Posts: 6
Member Since:
March 6, 2023
sp_UserOfflineSmall Offline
8
March 28, 2023 - 8:48 am
sp_Permalink sp_Print

Velouria,

That did it.  Thank you, Thank you, Thank you!

where would I have learned what those were had I not come here?  I've never heard of them before.

 

Thanks again,

 

Stacy

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Peter Venkatrao, QSolutions Group
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 185
Newest Members:
Kate Dyka
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6546
Posts: 28655

 

Member Stats:
Guest Posters: 49
Members: 32832
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.