Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Clear Clipboard no longer works

Please can someone put me right, I have a function to clear the clipboard,
but if I copy it into a new spreadsheet it comes up with an error, "User
Defined Type not Defined"
here is the function
Function ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Function
Why?
Thanks in advance
David


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clear Clipboard no longer works

From Chip Pearson's site:
http://cpearson.com/excel/clipboar.htm

Because these procedures use the DataObject variable type, you must have a
reference set in your VBA project to the Microsoft Forms 2.0 object library.


David Henderson wrote:

Please can someone put me right, I have a function to clear the clipboard,
but if I copy it into a new spreadsheet it comes up with an error, "User
Defined Type not Defined"
here is the function
Function ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Function
Why?
Thanks in advance
David


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Clear Clipboard no longer works

Thankyou Dave
hope you get this message
David
"Dave Peterson" wrote in message
...
From Chip Pearson's site:
http://cpearson.com/excel/clipboar.htm

Because these procedures use the DataObject variable type, you must have
a
reference set in your VBA project to the Microsoft Forms 2.0 object
library.


David Henderson wrote:

Please can someone put me right, I have a function to clear the
clipboard,
but if I copy it into a new spreadsheet it comes up with an error, "User
Defined Type not Defined"
here is the function
Function ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Function
Why?
Thanks in advance
David


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clear Clipboard no longer works

Got it.

David Henderson wrote:

Thankyou Dave
hope you get this message
David
"Dave Peterson" wrote in message
...
From Chip Pearson's site:
http://cpearson.com/excel/clipboar.htm

Because these procedures use the DataObject variable type, you must have
a
reference set in your VBA project to the Microsoft Forms 2.0 object
library.


David Henderson wrote:

Please can someone put me right, I have a function to clear the
clipboard,
but if I copy it into a new spreadsheet it comes up with an error, "User
Defined Type not Defined"
here is the function
Function ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Function
Why?
Thanks in advance
David


--

Dave Peterson


--

Dave Peterson
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
ALT+ENTER no longer works Dale Excel Discussion (Misc queries) 2 March 6th 07 03:39 AM
ActiveWindow.Width no longer works for me! rickety Excel Programming 2 September 1st 04 01:29 AM
ActiveWindow.Width no longer works for me! rickety[_2_] Excel Programming 0 September 1st 04 01:25 AM
Macro no longer works in XP C.B.[_2_] Excel Programming 1 December 14th 03 10:19 PM


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

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

About Us

"It's about Microsoft Excel"