Contents

# 巨集

Specifies the macro to run when you click an image, frame, or an OLE object.

若要使用此指令...

Choose Insert/Format - Image - Properties - Macro tab.

Choose Format - Frame and Object - Properties - Macro tab.

Choose Tools - AutoText - AutoText (button) - Macro.

Choose Tools - ImageMap - open context menu Macro.

Choose Format - Character - Hyperlink tab - Events button.

## 動作

Lists the events that can trigger a macro. Only the events that are relevant to the selected object are listed.

下表列出了可以觸發巨集的物件類型和事件：

動作 | 事件觸發 | OLE 物件 | Image | 外框 | 自動圖文集 | 影像映射區 | 超連結
--- | --- | --- | --- | --- | --- | --- | ---
按一下物件 | 選取物件 | ✓ | ✓ | ✓ |  |  |
滑鼠在物件之上 | 滑鼠指標移至此物件上 | ✓ | ✓ | ✓ |  | ✓ | ✓
執行超連結 | 按一下指定給物件的超連結 | ✓ | ✓ | ✓ |  |  | ✓
滑鼠離開物件 | 滑鼠指標移開此物件 | ✓ | ✓ | ✓ |  | ✓ | ✓
Image loaded successfully | image is loaded successfully |  | ✓ |  |  |  |
Image loading terminated | loading of the image is terminated by the user (for example, when downloading) |  | ✓ |  |  |  |
Could not load image | image is not successfully loaded |  | ✓ |  |  |  |
輸入希臘語第一個字母 | 輸入文字 |  |  | ✓ |  |  |
輸入非希臘語第一個字母 | 輸入非列印字元，如定位鍵和斷行 |  |  | ✓ |  |  |
變更框大小 | 變更外框的大小 |  |  | ✓ |  |  |
移動框 | 移動外框 |  |  | ✓ |  |  |
插入「自動圖文集」前 | 插入自動圖文集之前 |  |  |  | ✓ |  |
插入「自動圖文集」後 | 插入自動圖文集之後 |  |  |  | ✓ |  |

如需與表單中控制項相連結的事件，請參閱控制項屬性或表單屬性。

## Assigned Action

Specify the macro that executes when the selected event occurs.

外框允許您將某些事件連結至某一函式，此函式隨後決定該事件是由 LibreOffice Writer 來處理，還是由該函式來處理。請參閱 LibreOffice Basic 說明，以取得更多資訊。

### Macro From

Lists the LibreOffice program and any open LibreOffice document. Within this list, select the location where you want to pick the macro from.

### Existing Macros

Lists the available macros. Select the macro that you want to assign to the selected event, and then click Assign.

## 指定

Assigns the selected macro to the selected event.

## 移除

Removes the macro assignment from the selected entry.

Please support us!