Formatting script applicable to a range, not a whole sheet

I have the following script, which applies the formatting of line 1 to an entire worksheet. How can I limit the formatting application to a range (eg A7: AN135), so that the header lines are excluded from the formatting rule and retain their color, their font, etc.

function onEdit (e) {// This is enabled whenever a change occurs in the sheet
var tabs = [
‘G1’, ‘G2C’, ‘G2J’, ‘G3’, ‘G4’, ‘G5’ ];
var ss = SpreadsheetApp.getActive ()
for (var i = 0; i <tabs.length; i ++) {
var sheet = ss.getActiveSheet ()
if (sheet.getSheetName () == tabs[i]) {
var entryRange = e.range
var range = sheet.getRange (1, entryRange.getColumn (), 1, entryRange.getNumColumns ()) // This will be your range for formatting from row "1" and the corresponding column depending on the column being edited
Logger.log (entryRange.getA1Notation ())
range.copyFormatToRange (sheet, entryRange.getColumn (), entryRange.getNumColumns () + entryRange.getColumn () – 1, entryRange.getRow (), entryRange.getNumRows () + entryRange.getRow () – 1)
Logger.log (entryRange.getColumn ())
if (entryRange.getColumn () == 1) {// The value of this column will not be allowed changed except for row 1 of this column
if (entryRange.getRow ()! = 1) {// The columns of line "1" will be allowed to be modified
e.range.setValue ((e.oldvalue == undefined? "": e.oldvalue))
}
}
}
}
}