I am writing an HMI application in Rockwell's FactoryTalk View and would like to use VBA to open a file and read text. I have included the reference to Microsoft Office 16.0 Object Library so I can use fileDialog. The method is available now and I have found examples of how to do this for Office applications e.g.
Dim fileName as fileDialog
Set filename = Application.FileDialog(msoFileDialogPicker)
but the Set statement fails because fileDialog is not a method in this application. I would appreciate any input on the easiest way to get around this. I assume I need to create on Office Application object even though I am only invoking it for the file dialog browser.