Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wdPropertyBytes?? 1

Status
Not open for further replies.

cramd

Programmer
Mar 28, 2001
214
US
I am trying to find the size of documents by using the wdPropertyBytes--but as I read the documents and check the size it does not correspond to the KB's as displayed from the document property as shown from WIN/explorer. Example: document1 property indicates it has 3.43 KB, as I debug the program, I continually get 22 bytes for the wdPropertyBytes. Any thoughts?

Diane
 
wdPropertyBytes is a CONSTANT, not a property of your document. It will always be 22. Try using:

activedocument.BuiltInDocumentProperties(wdPropertyBytes)
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top