Share via

Passing an AppleScript variable to Microsoft Word VBA

Anonymous
2023-06-12T13:04:29+00:00

How do I pass a variable, of the name of the active document's custom document property, from ApplesScript to Microsoft Word VBA, so that the VBA code can then delete the custom document property with that name?

Microsoft 365 and Office | Word | For business | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. John Korchok 232.8K Reputation points Volunteer Moderator
    2023-06-13T16:09:57+00:00

    Without seeing your existing code, we can't offer any useful suggestions. To know how to set the correct document property to be deleted, we need to know how you get the property.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-06-13T01:35:29+00:00

    Often over a period of time, I need to prune old Custom Document Properties from Word., that I have created from data gleaned from FileMaker Pro Files.

    Microsoft Word's AppleScript, although allowing creation and editing of Custom Document Properties does not allow their deletion.

    As such, I am looking for a way to transmit a Custom Document Properties List from AppleScript to VBA code, for the purpose of deleting them.

    Was this answer helpful?

    0 comments No comments
  3. John Korchok 232.8K Reputation points Volunteer Moderator
    2023-06-12T15:53:11+00:00

    Please post your code.

    Why not just use VBA to get the name of the custom document property?

    Was this answer helpful?

    0 comments No comments