Skip to content

error in createNamedRegion #507

@tdp-datsci

Description

@tdp-datsci

R version: 4.4.0
Openxlsx version: 4.2.7.1
Platform: Windows

Trying to create a named region that where the cells are cross hatched but have data (see file) causes an error when saving the workbook. If the cells are not cross hatched (no fill or color), the regions are saved. I know that typically cells that are cross hatched indicate that no data should not be in the cell. The named regions are created and saved if the cells are not filled or are filled with a color.

I found this in using some client data (unable to provide); hence the test file.

A second issue that I found that might be related is that data must be in the cells in order for the regions to be created. If the cells are empty, the file saves the file but Excel indicates that there is an error. After fixing the error, Excel indicates that the named regions were removed. I am not certain if this is a related error or not, but thought I would bring it up.

Screenshot 2024-10-25 204239

testfile.xlsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions