Ok,
I’ve an old version of a nice little file dialog that works well; however, it was developed using the “Microsoft Office 10 Objects Library” reference using early binding…
Now each time we’ve upgraded, for some reason I’ve had to go in to the database and make sure that the reference is set… (last time I used Microsoft Office 11 Objects Library)
The real pain is that with every new database I create and import this code into, I have to go back and make sure that there is a reference to the MSO…
Then a 3W Bulb went off, I thought… If I can late bind Excel, Word, VBScript, etc… and the code already works, then let’s late bind this monster too!!!
Simple, or so I thought… I have tried:
Puzzled, I turned to the books… no luck there…. So I’ve tried the normal Google and Bing and Yahoo and you name it searches… tried the three dozen forums I’ve read for years… seen a lot of the same question… and yet, no answer
How do we late bind the "Microsoft Office ## Object Library" so that vba module uses the latest version as we can simularly do with Excel/Word/Outlook/VBscript?
-z
I’ve an old version of a nice little file dialog that works well; however, it was developed using the “Microsoft Office 10 Objects Library” reference using early binding…
Now each time we’ve upgraded, for some reason I’ve had to go in to the database and make sure that the reference is set… (last time I used Microsoft Office 11 Objects Library)
The real pain is that with every new database I create and import this code into, I have to go back and make sure that there is a reference to the MSO…
Then a 3W Bulb went off, I thought… If I can late bind Excel, Word, VBScript, etc… and the code already works, then let’s late bind this monster too!!!
Simple, or so I thought… I have tried:
Code:
<doesn’t work> Dim objFD as Object Set objFD = CreateObject(“Office.Application”) <doesn’t work> Dim objFD as Object Set objFD = CreateObject(“Office.FileDialog”) <doesn’t work> Dim objFD as Object Set objFD = CreateObject(“MSO.Application”)
How do we late bind the "Microsoft Office ## Object Library" so that vba module uses the latest version as we can simularly do with Excel/Word/Outlook/VBscript?
-z
Comment