As the title suggests, I would like to create a Table from a specific range in a worksheet using code from Apps Script. I searched around but I didn't find an answer. Thanks
Google Sheets Table
I did find a way to create a named range, but not a Table itself, which is a structured way to format and represent data.
Since this is a new feature, Google Apps Script does not currently offer a direct method for creating a specific range for a Sheet Table. There is a pending Issue Tracker Post related to this. I suggest hitting the +1
button to signify that you also have the same issue/request and consider adding a star (on the top left) for Google developers to prioritize the issue.
Reference: Issue Tracker