I found in the UI of Google Spreadsheet the functionality Text Rotation but i found no equal function in google apps script.
So how can i rotate Text with Google apps script?
Regards
Edit: I created a Spreadsheet with the needed rotation as default setting after this a make a copy of this spreadsheet.
You may follow the formula given in this thread. Here's a sample code:
In this example, we'll set the value of B2 in A1 in vertical format. Hope this helps.