Syntax for late binding to MSFORMS.DataObject

L

Legacy 98055

Guest
I cannot figure out the syntax for the life of me.

This should work...

Dim DatObj as Object
Set DatObj = CreateObject("MSFORMS.DataObject")

...but it does not.

Also, if it is not possible to late bind to this class, could you please explain why?

Thanks! :)
 
I hope necroposting is not bad in this case.

While I was searching for MSForms.DataObject, I found this discussion [Courtesy:=ThisThread]. So I was just checking the other links that google had thrown up.

This works [akihitoyamashiro]:
Code:
Dim oD As Object
Set oD = CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")

The big string in curly braces looks like one of those values we see in Registry. I just checked Registry and found that such strings are found against ENU_GUID. But the rest just eludes me.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Shrivallabha

It was a good idea to update this thread. Someone would read this post and might think it was not possible to create the DataObject directly (in this case led by me).

This was also posted several times here in this board, for ex. in post 3 in this thread by Rory:

http://www.mrexcel.com/forum/showthread.php?t=353731#3

In this case the object is created using the CLSID directly.
 
Upvote 0
Thank you pgc01.

You always have something good to share. So the big string wrapped in curly brace is called CLSID.
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top