Can calc. create a rectangle based on cell data?

Yes you are right @Ratslinger and thanks - now J Can the macro be set for the second sheet?