Bug 166662 - NEW: "Manage Names" window error message
Summary: NEW: "Manage Names" window error message
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.6.2 release
Hardware: All All
: medium enhancement
Assignee: Olivier Hallot
URL: https://ask.libreoffice.org/t/named-r...
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-20 06:45 UTC by Willy
Modified: 2025-07-10 14:28 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
"Manage Names" window with error message (12.08 KB, image/png)
2025-05-20 06:45 UTC, Willy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willy 2025-05-20 06:45:22 UTC
Created attachment 200880 [details]
"Manage Names" window with error message

In order to avoid confusions I propose to adjust the error message in the "Manage Names" window in Calc.

The error message could look like
“Invalid name. Start with a letter, except c,C or r,R followed by a number. Use only letters, numbers and underscore.”
Comment 1 Olivier Hallot 2025-05-20 13:04:16 UTC
+ Adjust extended tip as well.
Comment 2 Commit Notification 2025-05-20 18:28:34 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/44fbe5b8d92f48ffdabc0af12f4d653ddaf24c3d

tdf#166662 Improve ext tips for named range naming rules.

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-05-20 23:08:14 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b8f23b6946f819f57c4115d2f6fd75b923b76c6b

tdf#166662 Improve bad range name error msg.

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Piotr Osada 2025-06-14 17:52:00 UTC
(In reply comment #3)
> Olivier Hallot committed:
> https://git.libreoffice.org/core/commit/
> b8f23b6946f819f57c4115d2f6fd75b923b76c6b



>It must start with a letter 
>(excluding c, C, r, or R followed by a number) or underscore.
>                                             ^
>                                             |


Shouldn't parenthesis be in this position?:


It must start with a letter 
(excluding c, C, r, or R) followed by a number or underscore.
                        ^
                        |
Comment 5 Olivier Hallot 2025-06-15 12:40:54 UTC
A name like "a1qweq" is valid.
A name like "r1qweq" is not allowed.

So, the restriction on number is only when letters r,R,c,C are followed by any number, no matter what follows that number.

Also, the name cannot represent a cell address, such as a123.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c674ba2e7aafae1955f43ad377fa8369b5f1eb11
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: x11
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded