精華區beta Office 關於我們 聯絡資訊
節錄vba說明檔 "BuiltinDocumentProperties 屬性" 範例 本範例將在第一個工作表中顯示所有內建文件屬性的清單。 rw = 1 Worksheets(1).Activate For Each p In ActiveWorkbook.BuiltinDocumentProperties Cells(rw, 1).Value = p.Name rw = rw + 1 Next 說明檔 "DocumentProperty 物件" 使用 DocumentProperty 物件 用 BuiltinDocumentProperties(index) 可傳回 DocumentProperty 物件,該物件代表一 個指定的內建文件屬性,index 是該內建文件屬性的名稱或索引號。用 CustomDocumentProperties(index) 可傳回 DocumentProperty 物件,該物件代表一個 指定的自訂文件屬性,index 是該自訂文件屬性的名稱或索引號。 下列清單包含所有可用的內建文件屬性之名稱: Title Subject Author Keywords Comments Template Last Author Revision Number Application Name Last Print Date Creation Date Last Save Time Total Editing Time Number of Pages Number of Words Number of Characters Security Category Format Manager Company Number of Bytes Number of Lines Number of Paragraphs Number of Slides Number of Notes Number of Hidden Slides Number of Multimedia Clips