Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do I add vba reference to Microsoft Forms 2.0 Object Library?

I'm trying to use 'Dim myobj As New DataObject' in VBA to access clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default how do I add vba reference to Microsoft Forms 2.0 Object Library?

You need to have a reference to the Microsoft Forms library.



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"wrssbrown" wrote in message
...
I'm trying to use 'Dim myobj As New DataObject' in VBA to access
clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft
Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default how do I add vba reference to Microsoft Forms 2.0 Object Library?

Try using the Browse button to select c:\windows\system32\FM20.DLL

--
Jim
"wrssbrown" wrote in message
...
I'm trying to use 'Dim myobj As New DataObject' in VBA to access
clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft
Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default how do I add vba reference to Microsoft Forms 2.0 Object Library?

Try adding a form to your project, then look again for the reference.
If still no luck then try browsing to...
C:\ Windows \ System32 \ FM20.dll
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"wrssbrown"
wrote in message
I'm trying to use 'Dim myobj As New DataObject' in VBA to access clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default how do I add vba reference to Microsoft Forms 2.0 Object Library?

For me, it appears near the top of the list.

But a quick way to create a reference to that library is to add a userform to
your workbook's project.

You can delete it later if you don't need it.

wrssbrown wrote:

I'm trying to use 'Dim myobj As New DataObject' in VBA to access clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do I add vba reference to Microsoft Forms 2.0 Object Libra

thanks for your help. just the right answer, appreciate you took time to
answer.



"Jim Rech" wrote:

Try using the Browse button to select c:\windows\system32\FM20.DLL

--
Jim
"wrssbrown" wrote in message
...
I'm trying to use 'Dim myobj As New DataObject' in VBA to access
clipboard,
but VBA won't recognize 'DataObject', which is available in MicroSoft
Forms
2.0 object library. can't find MS Forms 2.0 object library in
tools/reference list.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel VBA Reference to Forms Object Library (to be unchecked) [email protected] Excel Programming 6 April 27th 07 07:02 AM
add ref to Microsoft HTML Object Library p3plyr Excel Programming 1 March 7th 07 03:21 AM
MS Forms 2.0 Object Library Michelle Hanan Excel Programming 1 August 1st 06 09:21 PM
How to install MICROSOFT FORMS 2.0 OBJECT LIBRARY Denis Petrov[_3_] Excel Programming 3 November 4th 05 04:35 PM
How to check Solver and Forms 2.0 Object Library permanently? yoyo2000 Excel Discussion (Misc queries) 1 September 26th 05 03:04 AM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"