var myStrokeWeight = 0.5; var myStrokeColor = app.documents[0].swatches.item("Black"); var myFirstCell = app.selection[0].cells[0]; var myLastCell = app.selection[0].cells[-1]; var myFirstRow = myFirstCell.name.split(":")[1]; var myLastRow = myLastCell.name.split(":")[1]; for (myCounter=myLastRow; myCounter >= myFirstRow ; myCounter--){ app.selection[0].cells[myCounter].bottomEdgeStrokeColor=myStrokeColor; app.selection[0].cells[myCounter].bottomEdgeStrokeWeight=myStrokeWeight; app.selection[0].cells[myCounter].bottomEdgeStrokeType= "Durchgezogen"; }
var curSel = app.selection[0].cells.everyItem(); with (curSel) { bottomEdgeStrokeColor = "Black"; bottomEdgeStrokeWeight = 0.5; bottomEdgeStrokeType = "Durchgezogen"; }