<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yukibnb</author_name>
  <author_url>https://blog.hatena.ne.jp/yukibnb/</author_url>
  <blog_title>Yuki's bnb blog</blog_title>
  <blog_url>https://www.yukibnb.com/</blog_url>
  <categories>
    <anon>GoogleAppsScript</anon>
    <anon>スプレッドシート</anon>
    <anon>効率化</anon>
  </categories>
  <description>こんにちは！ Yuki (@yukibnb) です。今回はGoogle Apps Script (GAS) を使ってスプレッドシートのシート数を取得する方法を紹介します。では見ていきましょう！ はじめに 実現したいこと ≪getNumSheets≫スプレッドシートのシート数を取得する 応用のポイント getNumSheetsは「すべての」シート数を取得する isSheetHiddenメソッドを活用して表示・非表示シート数を取得しよう getSheetsメソッドですべてのシートを取得する カウント用の変数shHiddenとshShownを宣言する for文を使って各シートの表示・非表示を判別する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yukibnb.com%2Fentry%2Fgas_getnumsheets&quot; title=&quot;【初心者向け！GAS基本操作】スプレッドシートのシート数を取得する方法 - Yuki&amp;#39;s bnb blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yukibnb/20191017/20191017195307.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-10 22:35:23</published>
  <title>【初心者向け！GAS基本操作】スプレッドシートのシート数を取得する方法</title>
  <type>rich</type>
  <url>https://www.yukibnb.com/entry/gas_getnumsheets</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
