Skip to content

Excel: Custom Worksheet Properties are not copied with worksheet #5486

@ddanehl

Description

@ddanehl

When a worksheet containing custom worksheet properties is copied, the properties are not copied with it.

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop, Web
  • Host [Excel, Word, PowerPoint, etc.]: Excel
  • Office version number: Microsoft 365 MSO (Version 2502 Build 16.0.18526.20144) 64 Bit
  • Operating System: Windows 11
  • Browser (if using Office on the web): Edge, Chrome, Firefox

Expected behavior

Custom worksheet properties should be copied with the worksheet.

Current behavior

Custom worksheet properties are not copied with the worksheet

Steps to reproduce

  1. Install ScriptLab
  2. Open and Run "Custom Properties" example
  3. Set a new worksheet property
  4. Get all worksheet properties, they are printed in the console
  5. Copy the worksheet
  6. Get all worksheet properties for the new copied sheet, nothing is found, empty console log

Link to live example(s)

  1. Official ScriptLab "Custom Properties" example

Context

We use custom sheet properties in our add-in to maintain metadata for the reports.
Users reported a bug to us that the reports stopped working on sheets which they did a copy of.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions