weshatheleopard / rubyXL

Ruby lib for reading/writing/modifying .xlsx and .xlsm files
MIT License
1.28k stars 255 forks source link

How to write a merged cell? #286

Closed khmunkhbat closed 6 years ago

khmunkhbat commented 6 years ago

Hi I'm using rubyXL gem. When i write data to a merged cell(using a xlsx template), workbook[0][11][5].change_contents("Value string")

i'm getting the following error. NoMethodError: undefined method `[]' for nil:NilClass

Is this possible to write data to a merged cell? How to solve this problem?

khmunkhbat commented 6 years ago

Oh i'm sorry, It was just my fault. It was no problem write data to a merged cell. Never mind.