나는 그들이dsolefile는 - 오류 처리 할 때 값이
존재하지 않는 경우 문서 속성을 업데이트하고 새 항목을 만들려고 해요 그러나 것은 이런 종류의 일을하지 않습니다 (Excel에서) 존재하지 않는
Set objDocProps = DSO.GetDocumentProperties(sfilename:=FileName)
With objDocProps
If .CustomProperties("ABC") Is Nothing Then
'create it here
그리고 그것이 잠긴 또는
errhandler:
Select Case Err.Number
Case -2147220987 ' missing custom property
Debug.Print "missing custom property"
With objDocProps
.CustomProperties("ABC").Value = "banana!"
CustomDocumentProperties는 Office 개체의 일부인 것처럼 보입니다. dsolefile의 요점은 속성을 읽고 수정하기 위해 사무실을 설치할 필요가 없다는 것입니다. 나는 그것을 사용할 수 없다. –