So, I have responded to feedback regarding my auto emailer (posted about earlier) by adding 4 lines of code that will automatically pull column headers from my spreadsheet. First the code and then an explanation of what it does:
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets();
var headers = sheet.getSheetValues(1,1,1,-1);
var Properties = headers
In the previous version you'll notice that I had hand-written the elements in the Properties array. What that meant was if I changed my headers on the spreadsheet--or really, the question titles on the google form that populates the spreadsheet--my script would still send an email with the original headers. I would have to change them all by hand. My new code makes the script pull the headers each time automatically, so if I change them between emails, it will automatically be correct on the next email.
My next task will be to make the same type of change for the if, then statement that currently has a "k < 12" parameter in it. The 12 could easily turn into 13 if I change my questions again and I want the script to know when to cut off the data table in my email.