Skip to content

Editing existing excel #256

@facuhump2409

Description

@facuhump2409

Hi,
I've been having trouble trying to modify an excel file. What I want to do is after processing the data from the excel, change the value from the row. Here's my code:
book = Spreadsheet.open "26-12 orders.xls"
messages = book.worksheet "Whatsapp Messages"
messages.each do |message|
#All the logic
message[0] = "Already processed row"

But when I open again the excel file, no modifications have been made (the "Already processed row" isn't in the file). How can a modify a row from an existing file and save it in the original excel? Is there a way to do it?

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