Dim document As Object Dim dispatcher As Object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") Dim args(1) As new com.sun.star.beans.PropertyValue args(0).Name = "Template" args(0).Value = "標準" args(1).Name = "Family" args(1).Value = 8 'シートに適用する場合は8 dispatcher.executeDispatch(document, ".uno:StyleApply", "", 0, args())