Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
USH USH is offline
external usenet poster
 
Posts: 7
Default .PutInClipboard

hELLo EVERYBODY !!
I found this sub on some useful site..
she makes all it's expected from her..
( copy a value to clipboard that will be pasted to an external program
with a mouse macro..)
now everything is working well..
but i don't understand the suggestion in the commented block...
nor if and what i have to do about. tx ! paolo

Sub CopytoClipboard()
' Requires a reference to Microsoft Forms Object Library
' An easy way to do this is to add and then delete a form;
' the reference will persist
With New DataObject
.SetText ActiveCell.Value
.PutInClipboard
End With
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default .PutInClipboard

Open Excel
Open your workbook
Go into the VBE
Show the project explorer
Select your workbook's project
Click on Tools|References and check that "microsoft forms object library"

If that reference were already checked, then you didn't need to do it! But if
it wasn't checked, then you had to do it.

Back to excel and save your workbook.

Just a reference to keep (add it as a comment in your code):

Chip Pearson's site:
http://www.cpearson.com/excel/Clipboard.aspx

It's where I would start if I had questions about using the clipboard in code.



On 05/18/2010 17:02, USH wrote:
hELLo EVERYBODY !!
I found this sub on some useful site..
she makes all it's expected from her..
( copy a value to clipboard that will be pasted to an external program
with a mouse macro..)
now everything is working well..
but i don't understand the suggestion in the commented block...
nor if and what i have to do about. tx ! paolo

Sub CopytoClipboard()
' Requires a reference to Microsoft Forms Object Library
' An easy way to do this is to add and then delete a form;
' the reference will persist
With New DataObject
.SetText ActiveCell.Value
.PutInClipboard
End With
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
USH USH is offline
external usenet poster
 
Posts: 7
Default .PutInClipboard

tx dave..
so i can put to clipboard directly
the value in a cell..

"Dave Peterson" wrote:

Open Excel
Open your workbook
Go into the VBE
Show the project explorer
Select your workbook's project
Click on Tools|References and check that "microsoft forms object library"

If that reference were already checked, then you didn't need to do it! But if
it wasn't checked, then you had to do it.

Back to excel and save your workbook.

Just a reference to keep (add it as a comment in your code):

Chip Pearson's site:
http://www.cpearson.com/excel/Clipboard.aspx

It's where I would start if I had questions about using the clipboard in code.



On 05/18/2010 17:02, USH wrote:
hELLo EVERYBODY !!
I found this sub on some useful site..
she makes all it's expected from her..
( copy a value to clipboard that will be pasted to an external program
with a mouse macro..)
now everything is working well..
but i don't understand the suggestion in the commented block...
nor if and what i have to do about. tx ! paolo

Sub CopytoClipboard()
' Requires a reference to Microsoft Forms Object Library
' An easy way to do this is to add and then delete a form;
' the reference will persist
With New DataObject
.SetText ActiveCell.Value
.PutInClipboard
End With
End Sub

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default .PutInClipboard

It worked ok, right?

On 05/18/2010 19:14, USH wrote:
tx dave..
so i can put to clipboard directly
the value in a cell..

"Dave Peterson" wrote:

Open Excel
Open your workbook
Go into the VBE
Show the project explorer
Select your workbook's project
Click on Tools|References and check that "microsoft forms object library"

If that reference were already checked, then you didn't need to do it! But if
it wasn't checked, then you had to do it.

Back to excel and save your workbook.

Just a reference to keep (add it as a comment in your code):

Chip Pearson's site:
http://www.cpearson.com/excel/Clipboard.aspx

It's where I would start if I had questions about using the clipboard in code.



On 05/18/2010 17:02, USH wrote:
hELLo EVERYBODY !!
I found this sub on some useful site..
she makes all it's expected from her..
( copy a value to clipboard that will be pasted to an external program
with a mouse macro..)
now everything is working well..
but i don't understand the suggestion in the commented block...
nor if and what i have to do about. tx ! paolo

Sub CopytoClipboard()
' Requires a reference to Microsoft Forms Object Library
' An easy way to do this is to add and then delete a form;
' the reference will persist
With New DataObject
.SetText ActiveCell.Value
.PutInClipboard
End With
End Sub

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
USH USH is offline
external usenet poster
 
Posts: 7
Default .PutInClipboard

...quite..
the cpu transformed in a golem of silicium and eated my head..
im writing to you from the afterlife !!



"Dave Peterson" wrote:

It worked ok, right?

On 05/18/2010 19:14, USH wrote:
tx dave..
so i can put to clipboard directly
the value in a cell..

"Dave Peterson" wrote:

Open Excel
Open your workbook
Go into the VBE
Show the project explorer
Select your workbook's project
Click on Tools|References and check that "microsoft forms object library"

If that reference were already checked, then you didn't need to do it! But if
it wasn't checked, then you had to do it.

Back to excel and save your workbook.

Just a reference to keep (add it as a comment in your code):

Chip Pearson's site:
http://www.cpearson.com/excel/Clipboard.aspx

It's where I would start if I had questions about using the clipboard in code.



On 05/18/2010 17:02, USH wrote:
hELLo EVERYBODY !!
I found this sub on some useful site..
she makes all it's expected from her..
( copy a value to clipboard that will be pasted to an external program
with a mouse macro..)
now everything is working well..
but i don't understand the suggestion in the commented block...
nor if and what i have to do about. tx ! paolo

Sub CopytoClipboard()
' Requires a reference to Microsoft Forms Object Library
' An easy way to do this is to add and then delete a form;
' the reference will persist
With New DataObject
.SetText ActiveCell.Value
.PutInClipboard
End With
End Sub
.

.



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
DataObject: PutInClipboard Not implemented Mike H. Excel Programming 1 November 20th 09 02:51 PM
Copying cell text to clipboard (using Putinclipboard) Libby Excel Programming 2 January 29th 09 06:46 PM
putInClipboard errors on mac subra Excel Programming 0 November 12th 03 03:39 PM


All times are GMT +1. The time now is 11:53 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"