LoginSignup
1
1

More than 5 years have passed since last update.

Jscript/Excel覚え書き(4) -セルに色をつける-

Posted at

覚え書き

セルに色をつける

Test.js
var Excel = new ActiveXObject("Excel.Application");
Excel.Visible = true;              //Excelを表示する
var Book = Excel.Workbooks.Add();  //新規ブック
var Sheet = Book.Worksheets(1);    //1シート目のオブジェクトを取得

Sheet.Range("A1").Interior.Color = 0x0000ff;
Sheet.Range("B1").Interior.Color = 0xff00ff;

WScript.Quit();
1
1
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
1
1