/ Published in: Visual Basic
Expand |
Embed | Plain Text
'スプレッドシートのセルにコマンドボタンをセットする。 ' ' Syntax: SetButtonToSpreadCell AnySs, Col&, Row& ' ' IN: AnySs 対象となるスプレッドシート ' Col& ボタンをセットする列 ' Row& ボタンをセットする行 ' Var セットする値 ' Public Sub SetButtonToSpreadCell(AnySs As vaSpread, ByVal Col&, ByVal Row&, Var As Variant) ' 設定を SPREADへ反映します。 With AnySs .Col = Col&: .Col2 = Col& ' 対象列 .Row = Row&: .Row2 = Row& ' 対象行 .BlockMode = True ' ブロックモード ON .CellType = CellTypeButton ' 標準ボタンの設定 .TypeButtonType = 0 ' ボタンタイプ .TypeButtonText = Var ' ボタン キャプション .BlockMode = False ' ブロックモード OFF End With End Sub
You need to login to post a comment.
