1

何らかの理由で、計算シートのセルから「html 形式のテキスト」を取得する必要があります。私が試した:

Sub Main
    Osheet = ThisComponent.Sheets.getByName("mySheet")
    oCell = oSheet.getCellrangeByName("D2")
    Print oCell.htmlText REM there is no htmltext property in cell instance
    REM holp output some thing like <p color="#ff0000">text in cell</p>
End Sub

これを行うことは可能ですか?

- - - - - -アップデート - - - - - - -

ここに画像の説明を入力

上記の画像のように。セルの色とフォントサイズを変更します。次に、VBA を使用してセルから「html テキスト」を取得する必要があります。可能であれば、次のように出力する必要があります。

<font size='12'>Hi !<font color='#ff0000'>every</font><font size='16'>body</font>.<font color='#0000ff'>Are</font> you OK?</font></font>

この関数を VBA で実装するにはどうすればよいですか?

4

0 に答える 0