ExcelWork.info

Excel(エクセル)のマクロ・VBA・関数・操作などのメモ

背景に画像を表示(SetBackgroundPicture メソッド)

      2016/01/12

SetBackgroundPicture メソッド

SetBackgroundPicture メソッド を使用するとワークシートの背景に画像を敷き詰めて表示することができます。この画像は印刷されません。


【書式】

object.SetBackgroundPicture ( filename )


引数・戻り値

  • object  ・・・  対象となる Worksheet オブジェクトを指定します。
  • filename  ・・・  表示する画像ファイルを指定します。

指定した画像を削除するには、SetBackgroundPicture メソッド の引数 filename に、””(空の文字列)を指定します。
 (例)ActiveSheet.SetBackgroundPicture (“”)



SetBackgroundPicture メソッド 使用例

サンプルVBAソース


実行結果

ワークシートの背景に画像を設定



 - ブック・シートの操作 , , , ,

Message

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

  関連記事

セルのコメントを印刷(PageSetup.PrintComments プロパティ)

PageSetup.PrintComments プロパティ PageSetup. …

印刷する用紙の向きを設定(PageSetup.Orientation プロパティ)

PageSetup.Orientation プロパティ PageSetup.Or …

ウィンドウのタイトル(Window.Caption プロパティ)

ウィンドウのタイトル(Caption プロパティ) Windows.Captio …

印刷位置を中央に設定(CenterHorizontally, CenterVertically)

PageSetup.CenterHorizontally プロパティ PageS …

白黒印刷(PageSetup.BlackAndWhite プロパティ)

PageSetup.BlackAndWhite プロパティ PageSetup. …

PrecisionAsDisplayed プロパティ 01
計算精度を設定する(PrecisionAsDisplayed プロパティ)

PrecisionAsDisplayed プロパティ PrecisionAsDi …

Window.Caption
並べて比較(CompareSideBySideWith,SyncScrollingSideBySide,BreakSideBySide)

並べて比較(CompareSideBySideWith メソッド) Compar …

シート見出しの色を設定
シート見出しの色を設定(Tab プロパティ)

シート見出しの色を設定 Tab オブジェクトの Color プロパティ、Colo …

共有ファイルを開いているユーザー情報を取得(UserStatus プロパティ)

共有ファイルを開いているユーザー情報を取得 UserStatus プロパティは、 …

ウィンドウを拡大・縮小(Zoom プロパティ)

ウィンドウを拡大・縮小(Zoom プロパティ) ウィンドウの表示サイズをパーセン …