搭配 CurrentView 屬性來判斷物件的目前檢視。
| 名稱 | 值 | 描述 |
|---|---|---|
| acCurView資料表 | 2 | 物件是在 [資料工作表檢視]。 |
| acCurView設計 | 0 | 物件是在 [設計檢視]。 |
| acCurViewFormBrowse | 1 | 物件是在 [表單檢視]。 |
| acCurView佈局 | 7 | 物件是在 [版面配置檢視]。 |
| acCurView樞紐分析圖 | 4 | 物件是在 [樞紐分析圖檢視]。 |
| acCurView樞紐分析表 | 3 | 物件是在 [樞紐分析表檢視]。 |
| acCurView預覽 | 5 | 物件是在 [預覽列印]。 |
| acCurView報告瀏覽 | 6 | 物件是在 [報表檢視]。 |
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。