PC Review


Reply
Thread Tools Rate Thread

The contents of the clipboard

 
 
dolivastro@gmail.com
Guest
Posts: n/a
 
      2nd Oct 2006
Is there anyway I can get to the contents of the clipboard. What I
want is this:

1. Select the contents of some application, eg, PDF or word.
2. Move to Excel, and select a cell
3. Run a VBA module that will alter the contents of the clipboard in
some way (eg, removing LF, trimming blanks, etc)
4. Paste the contents of the altered clipboard into excel.

What I'm thinking of is this:

Text = [GetClipBoard] ' No such function that I know of
[Alter Text]
activecell.value = activecell.value + " " + Text


Dom

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      3rd Oct 2006
Sounds like you need the DataObject.
http://www.cpearson.com/excel/clipboar.htm

NickHK

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there anyway I can get to the contents of the clipboard. What I
> want is this:
>
> 1. Select the contents of some application, eg, PDF or word.
> 2. Move to Excel, and select a cell
> 3. Run a VBA module that will alter the contents of the clipboard in
> some way (eg, removing LF, trimming blanks, etc)
> 4. Paste the contents of the altered clipboard into excel.
>
> What I'm thinking of is this:
>
> Text = [GetClipBoard] ' No such function that I know of
> [Alter Text]
> activecell.value = activecell.value + " " + Text
>
>
> Dom
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup using contents of clipboard? myfootsmells@gmail.com Microsoft Excel Programming 2 26th Apr 2008 02:26 AM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
Keep contents in clipboard =?Utf-8?B?S2Vubnk=?= Microsoft Excel Programming 0 20th Sep 2005 08:45 PM
Clipboard contents Basil Microsoft Excel Programming 1 8th Oct 2003 08:35 PM
Re: Clipboard contents, gone forever? Phil Robyn Microsoft Windows 2000 0 16th Aug 2003 12:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 PM.