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?

LibreOfficeCalc: Basic のマクロを使う

Posted at

プログラムの作成

ルール -> マクロ -> マクロの編集

image.png

Sub Main

  Dim oCell1 As Object
  
  oSheet = ThisComponent.Sheets(0)
  oCell1 = oSheet.getCellRangeByName( "A1" )
  oCell1.Value = 12
  oCell1 = oSheet.getCellRangeByName( "B2" )
  oCell1.Value = 34
  oCell1 = oSheet.getCellRangeByName( "C3" )
  oCell1.Value = 56
  oCell1 = oSheet.getCellRangeByName( "C4" )
  oCell1.Value = 78
  oCell1 = oSheet.getCellRangeByName( "C5" )
  oCell1.Value = 910
End Sub

マクロの実行

ツール -> マクロ -> マクロの管理 -> Basicマクロ

image.png

実行結果

image.png

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?