일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- PANDAS
- Google Spreadsheet
- GIT
- Redshift
- gas
- Excel
- django
- hive
- dataframe
- SQL
- matplotlib
- array
- numpy
- string
- Java
- Apache
- Python
- Tkinter
- PySpark
- 파이썬
- list
- Google Excel
- c#
- Kotlin
- math
- Mac
- Github
- PostgreSQL
- google apps script
- Today
- Total
목록Google Apps Script (82)
달나라 노트

Google Spreadsheet에선 위처럼 셀 안에 체크박스를 만들 수 있습니다. 체크를 안한 경우에는 X, 체크 한 경우에는 O라고 값이 떠있는걸 볼수있죠. 저 체크박스 만드는 것을 코드로 구현해봅시다. function myFunction() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1')); spreadsheet.getRange('B2').activate(); spreadsheet.getActiveRange().setDataValidation(SpreadsheetApp.newDataValidation().requireCheckbo..

엑셀에서 Ctrl + Shift + 방향키를 누르면 현재 셀에서 다음 데이터가 있는 모든 셀이 선택됩니다. 예를들어 위와같이 B2를 클릭한 후 Ctrl + Shift + 우측 방향키를 누르면? 이처럼 다음 데이터가 있는 모든 셀이 선택되죠. 이것을 코드로 구현해봅시다. function myFunction() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1')); spreadsheet.getRange('B2').activate(); spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Di..

Excel에서 Ctrl을 누른채로 방향키를 누르면 다음 데이터가 있는 가장 끝 셀로 이동됩니다. 위처럼 데이터가있고 B5셀에 커서가 있습니다. 이 상태에서 Ctrl + 우측방향키를 누르면? 그러면 F5 셀로 커서가 이동됩니다. 가장 마지막 데이터가 있는 곳으로 커서가 이동됩니다. 이것을 script코드로 구현해봅시다. function myFunction() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1')); spreadsheet.getRange('B5').activate(); spreadsheet.getActiveRange().getN..

셀에 적힌 값들을 정렬해보겠습니다. 현재 시트의 상태입니다. function myFunction() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1')); spreadsheet.getRange('B2').activate(); spreadsheet.getActiveRange().setHorizontalAlignment('center'); } - var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); 현재 spreadsheet 객체를 얻어옵니다. - spreadsheet.setActiveSheet..