Classic grouped worksheet copy
Copy an existing typed drawing with its worksheet
The existing Sheets.AddCopy operation copies a qualified worksheet drawing into its newly created destination sheet, either within the same workbook or across workbooks
The finite profile includes the admitted axis-aligned nested hierarchy, ordinary rectangle and textbox leaves, embedded picture frames plus supported ungrouped leaves
Copying uses current typed text, styles and placement rather than replaying an earlier unedited drawing image; the copied hierarchy and wrappers carry independent destination ownership
GroupCount, Groups, ParentGroup, ordered Children and the existing leaf-only Count/Items enumeration hang on to their established meanings
Existing operations and subsequent edits
- Open a qualified Classic XLS source and make supported typed text, fill, line or placement changes
- Call the destination workbook's Sheets.AddCopy with the source sheet; the Classic class API also takes the existing destination-name argument
- Use the returned sheet and reacquire its typed groups and leaves when editing the destination
- Save and reopen the destination workbook; an independently copied destination stays usable after the source workbook is released
Local coordinates, group coordinate domains and outer worksheet placement stay separate; finite selected-group insertion has its own CopyGroup methods, whilst general reparenting and group deletion remain outside these profiles
Images and text-run fonts
| Resource | Qualified behavior |
|---|---|
| Repeated images | Count each actual use whilst retaining one compatible destination catalogue entry |
| Conflicting catalog indexes | Resolve by actual source image identity and compatible stored profile rather than copying a stale numeric index |
| New images | Insert only the distinct required resources, with destination identities and correct initial use counts |
| Non-frame image fill | Map the admitted simple fill image reference, including when used alongside a picture frame |
| Text-run fonts | Migrate the actual font values and preserve character offsets through destination font allocation and later save-time renumbering |
Cross-workbook indexed text colours require equal resolved source and destination colours; unsupported palette remapping refuses before destination-sheet creation, whilst automatic font colour stays automatic
The finite image catalogue admits at most 4095 entries and the font preflight conservatively bounds destination capacity; these admission checks promise no constant memory for arbitrary object counts
Loaded default-column grid
Whole-sheet copying holds the actual loaded Classic default-column-width owner independently of the source workbook, the original absence or raw value of an optional standard-width declaration included
See StandardWidth save retention for unchanged assignments and explicit-edit behaviour; general font/DPI measurement, transformed groups and alternate-cache appearance remain separate profiles
Known alternate DrawingML caches
A copied new typed shape omits its specifically admitted alternate OOXML shape cache, whose old identities, text and coordinates would otherwise point at the source representation
Admission checks a bounded four-part ordinary rectangle/text cache with supported vocabulary and internal relationships; external bindings, unmodelled effects, hybrid raster dependencies and unknown reference-bearing owners refuse
Current typed geometry, explicit formatting, text and embedded image references decide the copied drawing; this promises no arbitrary raw-record retention
Actual Excel saving reconstructs alternate caches with the current copied text and consistent internal shape identities; that observation establishes no pixel-level rendering equivalence
Effective fill and shape visibility
Fill.Visible and shape Visible resolve their independent local use/value flags, then an admitted document default; an unset local use flag is inherited even when a raw local value is stored
The ordinary absent fill flag is on for 2-D shapes, and the absent hidden flag is off; picture frames follow the same shape-visibility rule
Reading the value or assigning its current effective value leaves the local property table and workbook generation unchanged; a conflicting assignment establishes that override whilst retaining independent flags in the same scalar, including print settings and legacy picture flags
The raw OfficeArtOptions API continues to expose local storage; same-workbook copies keep that local representation
Cross-workbook whole-sheet and selected-group copies resolve each defined fill and shape Boolean flag independently and establish destination-owned values, so different destination defaults and later source destruction do not alter those copied settings
The seven fill flags and shape Boolean family are represented; ignored local fill bits are retained, whilst unknown property owners, unresolved alternate tables and non-scalar references retain their existing preflight refusal
Qualification covers model edits, stored Boolean records, source-free save/reopen and exact named-stream file/stream output; it brings no native rendering, pixel, layout or arbitrary drawing-owner qualification
Preflight and publication boundaries
Unsupported owners, unknown workbook defaults, unresolved embedded images, invalid text-run fonts and unsupported palette dependencies are refused during preflight
The prepared drawing owns its typed models and structural skeleton in its own right; only immutable source ranges and image-source interfaces share lifetime-managed leases
Image catalogue additions, hash membership, identity allocation and existing use-count deltas roll back if drawing publication fails; wrapper and temporary-owner allocations have explicit failure cleanup
The existing general AddCopy operation can still leave behind a newly created partial worksheet when a later unrelated allocation or copy step fails, and font-pool changes or reference bookkeeping can remain after such a failure
This increment delivers drawing and image-resource ownership controls without adding whole-workbook transactional copying or any new concurrent-mutation guarantee
Representative acceptance
Final-source Win64 qualification uses 156 focused checks with one cold build and five guarded same-source reuses, taking in two corrected fixed-tree image-growth controls
Independent decoding covers twenty files and exact complete CFB stream bridges to the earlier source inputs actually inspected by Excel across 276 plus 89 checks; the final build adds no new native or platform matrix
The native controls inspect text, four text-run font values, direct fill and line formatting, image availability and independently predicted nested geometry, with an actual SaveAs and normal reopen
The earlier candidate wire review has 1372 checks, its native cache assessment has 40 checks and its independent review has 19752 checks; those binding counts are distinct from public execution assertions
With the same fixed tree, actual PNG payloads grow from 65433 to 4194514 bytes; final measurements are recorded apart from candidate measurements in the release qualification
Incremental Pascal allocations and the largest-request observations are measured controls, not process RSS and not a universal arbitrary-tree memory bound
Flat connector references and worksheet copying
Ordinary Classic drawing save binds represented connector, start and end owners before assigning new shape identities, so a normally reopened flat drawing keeps its intended references
A connector must resolve to one current shape; zero start or end identities remain valid free endpoints, while missing, duplicate or unknown solver references are refused before output publication
Sheets.AddCopy now also copies a complete sealed flat drawing with represented connector rules through the existing structural snapshot copier, within a workbook or across workbooks
The copied shapes and connector endpoints belong to the destination sheet, including when that workbook already contains a drawing and the source workbook is released afterwards
Existing resource, property, font, palette and physical-owner admission limits remain; fresh unsealed closures, live fragments and unrepresented solver semantics do not gain generalised copying support
Final Win64 qualification has 109 focused checks and 2691 independent record checks, with seven complete candidate-to-final CFB stream bridges and an unchanged grouped-copy control; this increment brings no new native Excel or visual-appearance qualification
Primary document colours through ordinary shape reads
Version 2.384.397 corrects ordinary Classic fill and line colour reads when the shape has no local primary value but the document supplies an admitted primary scalar default
The existing local primary value remains first for every previously readable colour-property identifier; the new document fallback is limited to fill foreground/background and line foreground/background
Direct RGB and the represented scheme identities use the existing palette and automatic-colour conversion; explicit local zero remains an override, and deleting the local override restores the admitted document default
Both RGB and SchemeColor read the same source property without creating a local option table, changing source generation or materialising a default into the source shape; the raw local OfficeArtOptions API stays unchanged
The OfficeArt property rules identify document-level defaults; a parent group's own shape properties are not treated as the document default chain of its children
The qualified source and same-book copy retain local absence, while the established cross-book copier materialises its admitted ordinary defaults into the independent copied shape
Document-level F121/F122 records are retained as owning raw header/body ranges and are streamed back through ordinary saving, source destruction, normal reopening and repeated saving
The document container definition assigns default semantics to primary and tertiary owners; a nonstandard secondary document record is kept as opaque data without granting it default semantics
Before granting the new primary fallback, bounded local and document family-directory checks reject a same-property collision or invalid directory by retaining the existing zero/no-scheme fallback; this guesses no general cross-family precedence and adds no getter exception
Retained unknown default families still refuse source or destination closure copying before publication; this read correction brings no unknown-family copying, reference remapping or extended ColorRef support
The integrated source passes 168 focused and 37103 independent checks, including clear/reload, local overrides, source and target copy refusals, four colour consumers and persistent raw-family guards
Two ordinary compatibility outputs retain all six complete named CFB streams byte for byte against released395, and all 25 candidate/final output files keep their 75 complete named streams without exceptions
The genuine retained source has its earlier native observations, but this increment creates no new native window, appearance or pixel-parity qualification; broader property families, transforms, classes and catalogue mapping remain separate work
Document-default line width and style
Version 2.384.400 extends ordinary Classic Line.Weight and Line.Style reads to supported document primary defaults when the shape lacks a local primary value
Weight remains expressed in points, including zero and the existing 1584-point upper bound; style admits the existing five represented line styles, and explicit local values keep their previous precedence
Assigning a value now compares with the effective inherited value: requesting 0.75 points against a document default of 2 points creates the necessary local override, whilst assigning the already effective value keeps local absence and remains a no-op under a read lease
The raw OfficeArtOptions interface remains local, and ordinary getters neither create a local property table nor inherit the own shape formatting of a parent group
Supported same-workbook copying retains local absence; cross-workbook copying materialises the supported missing defaults into the independent copied shape so releasing the source does not change its effective width or style
Invalid, complex, referenced or conflicting document defaults keep their previous fallback or copy refusal; retained secondary and tertiary property families do not gain guessed precedence, and the local opaque data of an unrelated target shape does not become a document-level conflict
Boolean use-bit inheritance, opacity, dash/cap dependencies, transforms and broader property families were separate work at that correction, which brought no new native appearance or pixel-parity qualification; Boolean use-bit inheritance is qualified afterwards for the protection and picture words in Boolean property words inherited from workbook defaults, and dash and cap dependencies were qualified at 2.384.451
Boolean property words inherited from workbook defaults
Version 2.384.481 copies a grouped Classic drawing whose shape carries its own protection or picture Boolean property whilst the source workbook also declares a default for that same property, which previously refused before any destination state changed
Across workbooks the two values merge into one fully explicit property via the same strict use-bit resolution the fill, shadow and shape Boolean families already used, so the copy no longer leans on a workbook default table that no saved file carries, and every flag the shape did not spell out keeps the value the source workbook declared
Within one workbook the admission is the same and the merge is not, because the copy shares a single document default table with its source and the shape's own value still resolves against the defaults it was authored against: the copied shape keeps its local word unchanged, a leaf that carried no value for the word keeps carrying none rather than receiving a cloned default, and no fully explicit word is materialised, which is the same-workbook retention this topic already sets out for the raw OfficeArtOptions interface, for fill and shape visibility, and for document-default line width and style alike
That the admission also reaches a copy staying inside one workbook follows from the source drawing group being validated whether or not the destination group differs, so before version 2.384.481 such a copy of a workbook declaring either default refused with the same guard; both words are qualified on that path by comparison against the prior release, and each copied leaf is compared by index against the very same leaf read before the copy
The masks come from the primary specification rather than the fixtures: the protection word has ten use bits and ten flags all defaulting to unset, the picture word has seven of each, and both satisfy the same alignment the released resolver already assumes
The actual 3D object and style Boolean words are represented separately in the 2.384.512 metadata-copy profile; ambient intensity has its own finite scalar profile; other 3D scalar and colour properties, transforms and native appearance keep their existing boundaries
Document-default dash patterns and cap-dependent dots
Version 2.384.401 extends ordinary Line.DashStyle reads to supported document preset and cap defaults when the corresponding local primary property is missing
The existing round-dot alias combines dotted preset 2 along with round cap 0; other supported caps keep the non-round dotted interpretation, without merging document defaults into the raw local-property interface
Changing a round-dot line to a non-round style now writes an explicit flat cap only when deleting the local cap would reveal a qualified nonflat document cap; missing or already flat document defaults keep the ordinary local-cap deletion behaviour
An equal effective assignment remains a no-op under a read lease; same-workbook copies retain local absence and independent cross-workbook copies retain supported preset and cap values once the source is released
The new document and copy profile covers simple presets 0 to 10 and caps 0 to 2, preserving the existing invalid, complex, referenced and opaque-family refusal boundaries
Repeated edited outputs retain their represented OfficeArt state, while an observed accumulation of unrelated BIFF settings remains separate serializer work; this claims no whole-Workbook repeat byte identity
Boolean use bits, custom dash arrays, opacity, transformations and broader catalogue semantics remain separate work, with no new native appearance or pixel qualification
Remaining drawing and theme boundaries
Selected-group insertion into an existing drawing has a qualified finite profile; whole-worksheet AddCopy refuses drawings with live inserted fragments until they have been saved and normally reopened, whilst generalized connector and solver references, unknown reference-bearing owners, broader defaults, transformations and shape classes remain separate work
Cross-workbook copies use the destination theme; finite native Theme persistence now retains the admitted unchanged destination package with its font and format schemes
The earlier separate native diagnostic employed an in-memory theme intervention to isolate explicit copied content; the newer unchanged-package contract has its own source and native evidence, whilst arbitrary theme editing stays outside the copy profile
The remaining mandatory wide typed-metadata and storage domains in compound storage remain open
Source-effective line visibility when copying drawings
The historical411 local-only interpretation and source-copy fidelity claim were not qualified: an actual source TextLeaf was visible whilst its new whole and selected copied lines were hidden
The finite412 correction follows represented local and document use flags, takes the standard visible default only after proving absence, and materialises the known source-effective value across owners
See the corrected final-source consumer domain covering the two exact public-copy products and the retained alternate-cache conflict
Source-effective line visibility
See local use flags, known document defaults and copy closure covering the finite visibility profile and retained alternate-cache boundary
Qualified transformed groups and retained native caches
Version 2.384.457 widens represented Classic whole-worksheet and selected-group copying to the qualified rotated and flipped nested group profile
The retained cache stays fastened to its actual loaded shape, physical provider, typed text, local transforms and ancestry; copying prepares a new target-owned identity without keeping the source workbook alive
Source and target must keep matching complete source themes, represented document defaults, referenced fonts and actual built-in Normal STYLE to XF to FONT ownership; a fresh or incompatible target does not earn this permission by matching a worksheet name or FONT 0 alone
Original primary properties and nonempty native cache checksums stay preserved; only the owned paired cache identities are rewritten, unrelated XML bytes and package parts surviving untouched
Real whole copies hold the observed source geometry; selected copies replace the root placement explicitly and keep their internal local geometry, rather than inheriting an excluded outer ancestor's transformation
The selected reference is derived by shifting one actual root anchor and is compared at corresponding native-save phases; Excel COM resizing also shifts internal child coordinates and is a different operation
Whole-copy native geometry is exact in the qualified observations under the unchanged 0.75 point threshold; selected geometry matches its corresponding before-save or after-save reference, whilst native saving itself can normalise geometry across those phases
Changed cache text, fonts, theme, Normal mapping or transforms refuse with a healthy retry after exact repair; stale copied output refuses before identifier/catalogue preparation and preserves the checked stream sentinel
Copied retained-cache output is qualified for BIFF8; arbitrary cache editing, master/reference chains, general target contexts, renderer equivalence and all transformed drawings stay separate work
A master reference that names no master
Version 2.384.485 lets a grouped Classic copy carry a shape master reference whose value is zero, which names no master shape whatsoever, where the copy previously refused that property on its mere presence and so failed the whole worksheet copy
This closes an inconsistency inside the library rather than a gap against the format: the preparation that validates the owner graph already refused this property only when it was present and non-zero, and the custom dash reader already resolved through an absent or zero master, so the copy had been turning away a shape that preparation admitted, over a reference pointing at nothing
What is admitted is precisely a simple zero value; a master reference that is complex, that is a picture reference, or that is non-zero stays refused, and a non-zero one is still refused earlier by that value-paired preparation check with its own unchanged message, so the two stay distinguishable
Admitting a reference that names no master is not a master inheritance chain and follows none: a shape that actually has a master is still refused before any of this, on the flag in its shape record that says so, and a workbook default or a retained alternate property table naming a master is still refused on presence, because neither has a shape owning the reference; the boundary above that master and reference chains stay separate work therefore stands unchanged
The admitted value is carried as the source wrote it and comes through saving and reopening the destination, and the copied line Boolean word is unchanged, so this release touches no other byte of such a copy
Known 3D object and style Boolean metadata
Version 2.384.512 holds the complete known 3D-Object and 3D-Style Boolean words in ordinary grouped Classic whole-sheet and selected-group copies
The format defines property identifiers 0x02BF and 0x02FF, with four and five represented value bits respectively and matching use bits in the upper word
Cross-workbook copying works each flag out from the source local use bit, source document default and format default, then writes the known values explicitly into the destination shape
This also shields an absent source word from picking up values that only the destination workbook declares; ignored local bits stay preserved whilst ignored document bits are not inherited state
Same-workbook copies keep their existing local raw ownership against the unchanged document default context, and saving and reopening the destination keeps the copied words
Both words must be simple non-blip entries; complex words, blip flags taking in a zero image reference, separate unsupported 3D scalar or colour owners and nonzero master identities stay refused before publication
The existing alternate-provider, retained Metro, palette, font and storage guards stand; the new full-value materialisation applies to the ordinary primary cross-workbook profile, whilst retained Metro owners keep their independently checked context
OfficeArtOptions.LongValue[Pid] stays a local raw property channel, and this increment adds no effective 3D getter, native 3D geometry or visual rendering qualification
The masks and defaults follow the Microsoft 3D-Object Boolean Properties, 3D-Style Boolean Properties and document property-default rules
Source-owned 3D ambient intensity metadata
Version 2.384.514 looks after the known ambient light intensity metadata in ordinary grouped Classic whole-sheet and selected-group copies
The value is a simple non-blip 16.16 fixed-point scalar from zero through one, carried by raw integers 0 through 65536; the specified default is exactly 20000/65536, or 0.30517578125
An independent cross-workbook copy takes the local source value first, then a represented source workbook default, and finally the specified default when only the destination declares this property, so destination defaults cannot touch the source metadata
A same-workbook copy keeps the original local value or its absence; the metadata stays reachable through the existing raw OfficeArtOptions.LongValue interface
Out-of-range values, complex entries, image-reference flags taking in a zero reference, and unsupported adjacent owners stay refused before publication
Retained native cache providers keep their existing complete context matching rules and never use this new ordinary-copy materialisation path
This is a finite metadata-copy profile; other 3D scalars, colours, geometry, master inheritance and native rendering stay separately qualified
The property identity, range and default follow Microsoft c3DAmbientIntensity and its FixedPoint representation
Single-hop nonzero master shape references
Version 2.385.214 brings valid single-hop nonzero master shape references (hspMaster together with the shape-record fHaveMaster flag) into Classic worksheet drawing persistence and grouped copy (AddCopy and CopyGroup)
Effective property lookups and cross-workbook materialisation follow the OfficeArt precedence of local shape property, then master shape property, and finally document default, so a follower shape keeps its inherited fill, line, custom dash pattern and shadow, the protection/picture/text/fill/line/shadow Boolean words and the 3D Boolean words without taking on conflicting destination workbook defaults
Saving, same-workbook copying, cross-workbook copying and selected-group copying remap each copied follower's master reference at once to the copied master's newly assigned non-zero shape identifier, keeping both the flag and the remapped link across reopened workbooks
Master-free single-hop closure is strictly enforced: master identifiers that are missing, chained or multi-hop masters with their own fHaveMaster bit or master property active, flag/value mismatches (a nonzero hspMaster lacking fHaveMaster, or fHaveMaster carrying a zero reference), and selected-group copies whose referenced master sits outside the selected group's ownership closure are all refused cleanly
Version 2.385.223 widens single-hop master resolution to typed Fill.FillType queries, source-owned 3D ambient light intensity inheritance, local Line.DashStyle overrides on follower shapes (which neutralise inherited non-flat master or document end caps for non-round-dot presets without touching the master), cross-workbook scalar line materialisation when a follower defines its own custom dash pattern, and Classic SaveSemanticSnapshot capture for top-level single-hop follower shapes with preset or solid dashes
Broader 3D scalars/colours and native 3D and custom-dash visual rendering, general shape regrouping or deletion, and raw or foreign hierarchies that stay unmodelled remain separate work