diff --git a/src/worksheet.jl b/src/worksheet.jl index 3e3a230..f74b7c2 100644 --- a/src/worksheet.jl +++ b/src/worksheet.jl @@ -220,6 +220,8 @@ function getcell(ws::Worksheet, ref::AbstractString) end end +getcell(ws::Worksheet, row::Integer, col::Integer) = getcell(ws, CellRef(row, col)) + """ getcellrange(sheet, rng) diff --git a/test/runtests.jl b/test/runtests.jl index ccd08ef..917827c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1258,6 +1258,10 @@ end @test sheet["B2"] == "hello world" @test XLSX.getcell(sheet, "B2").style == id(textstyle) + sheet[3, 1] = CellValue("hello friend", textstyle) + @test sheet[3, 1] == "hello friend" + @test XLSX.getcell(sheet, 3, 1).style == id(textstyle) + # Check CellDataFormat only works with CellValues @test_throws MethodError XLSX.CellValue([1,2,3,4], textstyle)