Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataValidations range issue #1831

Closed
mediawall opened this issue Feb 29, 2024 · 1 comment
Closed

dataValidations range issue #1831

mediawall opened this issue Feb 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mediawall
Copy link

test.xlsx

the sqref of dataValidations is a range in my excel file (xl\worksheets\sheet1.xml)

<dataValidations count="1">
  <dataValidation  sqref="G1:G3 H1:H3" .../>
</dataValidations>
f, _ := excelize.OpenFile("test.xlsx")
defer f.Close()

sn := "Sheet 1"
if err := f.InsertRows(sn, 2, 1); err != nil {
  println(err.Error())
}

the error will happen

invalid column name "G3 H"

lib version: 2.8.1
go version: 1.22
os: ubuntu 22.04

@xuri xuri added the bug Something isn't working label Mar 4, 2024
@xuri xuri closed this as completed in f20bbd1 Mar 4, 2024
@xuri
Copy link
Member

xuri commented Mar 4, 2024

Thanks for your issue. This issue has been fixed, please upgrade to the master branch by go get -u github.com/xuri/excelize/v2@master, and this patch will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Bugfix
Development

No branches or pull requests

2 participants