Princeton-CDH / pemm-scripts

scripts & tools for the Princeton Ethiopian Miracles of Mary project
Apache License 2.0
1 stars 0 forks source link

Changing Named ranges #43

Closed elambrinaki closed 4 years ago

elambrinaki commented 4 years ago

When I reapplied validation from the PEMM menu, the data on other sheets shifted. I think it is because named ranges are definied without $ sign, and since I added rows at the beginning, the named ranges shifted (for some fields, they now begin from row 3 or 4 instead of row 2).

rlskoeser commented 4 years ago

I have a potential fix for that #35 — but I thought we agreed to add unmanaged columns at the end of managed columns?

elambrinaki commented 4 years ago

@rlskoeser Right, all new columns are at the end, But for rows, we didn't make the same agreement. So I add rows not only at the end, but anywhere I need them.

rlskoeser commented 4 years ago

Sorry, I didn't read carefully enough! It didn't seem like adding rows wouldn't be a problem, but if you added them before the first entry then it could indeed mess up the reference.

rlskoeser commented 4 years ago

@elambrinaki sorry, I don't understand what you're asking us to do. If you run the "setup sheet" command it will redefine the ranges — does this help any?

elambrinaki commented 4 years ago

@rlskoeser Indeed, in the test PEMM sheet after running the setup sheet the named ranges look good:

Named ranges