[VB] Document properties

Pagina: 1
Acties:
  • 75 views sinds 30-01-2008

  • Ronald_stage
  • Registratie: Januari 2002
  • Laatst online: 23-08 20:50

Ronald_stage

wat kan je hier nog zeggen

Topicstarter
Wat doe ik verkeerd?

ik wil graag de eigenschappen van een document kunnen bekijken.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Private Sub Form_Load()

Dim wd As Word.Application
Dim Doc As Word.Document

Set wd = New Word.Application
Set Doc = wd.Documents.Open("C:\test.doc")

MsgBox Doc.BuiltInDocumentProperties(wdPropertyTitle)
MsgBox Doc.BuiltInDocumentProperties(wdPropertyAuthor)
MsgBox Doc.BuiltInDocumentProperties(wdPropertyKeywords)
MsgBox Doc.BuiltInDocumentProperties(wdPropertyCompany)
MsgBox Doc.BuiltInDocumentProperties(wdPropertyPages)

Doc.Close wdSaveChanges
wd.Quit
Set Doc = Nothing
Set wd = Nothing


End Sub

  • Altaphista
  • Registratie: Juli 2001
  • Laatst online: 25-08 17:13

Altaphista

1. check manual, 2. ask

waar gaat het fout?
misschien staat hier wat meer info: goegul

Je gaat het pas zien als je het doorhebt.


  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 12:42

Janoz

Moderator Devschuur®

!litemod

Wat je fout doet?

Waarschijnlijk over de quickstart gekeken, want daar staat in dat het hier niet echt de bedoeling is om een blok code + 'hij doet het niet' in een topic te dumpen ;)

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Dit topic is gesloten.