Last active
July 10, 2020 05:19
-
-
Save kinuasa/d71c4beec338f1c18b2d0d88c0fa978f to your computer and use it in GitHub Desktop.
Office Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //前のシートを取得 | |
| function main(workbook: ExcelScript.Workbook) { | |
| let currentSheet = workbook.getActiveWorksheet(); | |
| let sheet = currentSheet.getPrevious(); //メソッドの引数にtrueを指定すると非表示のシートをスキップ | |
| sheet.getRange("B2").select(); //セルB2を選択 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment