0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

gasをつかってspreadsheetでセルをコピーするときの形式まとめ

Posted at

E36の内容をR5にコピーする場合。この場合は、値のみコピー。

//csheet は、操作するシート
csheet.getRange('E36').copyTo(csheet.getRange('R5'),SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);

CopyPasteTypeの種類 (GoogleWorkspaceのリファレンス)

プロパティ 種類 貼り付けるもの
PASTE_NORMAL Enum 値、数式、書式、結合
PASTE_NO_BORDERS Enum 値、数式、書式、結合(枠線なし)
PASTE_FORMAT Enum 書式のみ
PASTE_FORMULA Enum 数式のみ
PASTE_DATA_VALIDATION Enum データ検証のみ
PASTE_VALUES Enum 値のみ
PASTE_CONDITIONAL_FORMATTING Enum 色ルールのみ
PASTE_COLUMN_WIDTHS Enum 列幅のみ
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?