I am trying to create a button to "programmatically reclculate (resize) datalink functions," as described by this article: https://techsupport.osisoft.com/Troubleshooting/KB/KB01035 . But when I click on the button after finishing the steps, I get an error that says "runtime error 91: Object variable or with block variable not set." When I click on the debug option it highlights the "automationObject.SelectRange" statement.
One other problem that I am having is in selecting the PIDLdialogs reference as describe in the article. When I click on tools and then reference, I do not see the option for PIDLdialogs. I do however see an option for PI-SDK Dialogs.
Any help with this matter would be greatly appreciated.