![\relax の使い方 12連発 - 0番染色体](https://cdn-ak-scissors.b.st-hatena.com/image/square/7b9f5da050a7bb02fc49524f7e32867dc3dda31c/height=288;version=1;width=512/http%3A%2F%2Ff.st-hatena.com%2Fimages%2Ffotolife%2FW%2FWatsonDNA%2F20151129%2F20151129014216.png)
Example[] Given some data like the following: one first example two second example three third example four fourth example suppose you want to change the data to make a dictionary for a Python program, with this result: data = { 'one': 'first example', 'two': 'second example', 'three': 'third example', 'four': 'fourth example', } To do this, record a macro while changing the first line. Then, play
LibreOfficeのマクロはLibreOffice BASICが標準ですが、Pythonを使ってマクロを書くこともできます。 LibreOffice Calcの簡単なサンプル シートとセルを選択して値を読み書きするだけのスクリプトです。 def sample(): ここで定義する名前がLibreOffice Calc上でも表示されることになります。 doc = XSCRIPTCONTEXT.getDocument() シートの選択 名前から選択する場合 sheet = doc.getSheets().getByName('Sheet1') インデックスから選択する場合 sheet = doc.getSheets().getByIndex(0) アクティブシートを選択する場合 sheet = doc.CurrentController.getActiveSheet() 値の読み書き(数値
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く