XLSX-Workbook-Class icon indicating copy to clipboard operation
XLSX-Workbook-Class copied to clipboard

Allow a sheet to be named "History"

Open DougHennig opened this issue 1 year ago • 2 comments

I commented out this code in CheckSheetName to allow a sheet to be named "History":

*** DH 2023-07-14: allow History as a sheet name
*IF UPPER(lcSheetName) == "HISTORY"
*	RETURN .NULL.
*ENDIF

DougHennig avatar Dec 24 '23 14:12 DougHennig

Doug—

When I try to rename a sheet in Excel 2016 to ‘History’ I get an error message that History is a reserved name.

image

Based on this I would not recommend using this name as I don't know what side-effects that might occur.

Greg

From: Doug Hennig @.> Sent: Sunday, December 24, 2023 9:25 AM To: ggreen86/XLSX-Workbook-Class @.> Cc: Subscribed @.***> Subject: [ggreen86/XLSX-Workbook-Class] Allow a sheet to be named "History" (Issue #105)

I commented out this code in CheckSheetName to allow a sheet to be named "History":

*** DH 2023-07-14: allow History as a sheet name

*IF UPPER(lcSheetName) == "HISTORY"

  •   RETURN .NULL.
    

*ENDIF

— Reply to this email directly, view it on GitHubhttps://github.com/ggreen86/XLSX-Workbook-Class/issues/105, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGWB33KOE2VN6PVZPGEFAYDYLA3MVAVCNFSM6AAAAABBBSFKYOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TKMJRG43DOMA. You are receiving this because you are subscribed to this thread.Message ID: @.@.>>

ggreen86 avatar Dec 26 '23 22:12 ggreen86

You can't rename a sheet to History but you can create a sheet named History. That seems weird!

DougHennig avatar Dec 27 '23 18:12 DougHennig