title: VBS Excel CustomDocumentProperties MSIP_Label
body: <p>I'm working on the script below to add a Microsoft Azure Information Protection Label and not able to add MSIP label.</p>
  <pre><code>loc= &quot;C:\Users\user88\Downloads\file.xlsx&quot;
  guid = &quot;abc-0-123&quot; 
  
  With objExcel
      .Workbooks.Open(loc)
      .Workbooks.CustomDocumentProperties.Add &quot;MSIP_Label_&quot; &amp; guid &amp; &quot;_Enabled&quot;, False, msoPropertyTypeString, &quot;true&quot;
      .ActiveWorkbook.SaveAs(loc), 51
      .Activeworkbook.Close
  End With
  </code></pre>
  <p>Error message I get on the MSIP_Label_ line: <em>Object doesn't support this property or method: Workbook.CustomDocumentProperties.</em></p>
  <p>What do I need to change?</p>