Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default access to the multiple values on clipboard

I'm wondering if it is possible to selectively paste from the clipboard.
For example, lets say you copy 3 diff cell values to the clipboard.
I would like to have a predefined set of hotkeys ie. ctrl+shift+alt+1 ,
2, 3 that would paste the 1st 3 slots (whatever they are called) from
the clipboard respectively. I can assign the keys, I'm just wondering
how to access the different slots in the clipboard in Office...

Cheers

Job
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default access to the multiple values on clipboard

do this experiment
open the cliboard toolbar (views-toobar)
now one by one copy some three cells (only copy)
these 3 copies will be palced in clipboard toolbar
you can copy any of them or all of them

is this what you want
or as this message is <programme newsgroup do you want a vba solution



Job wrote in message
...
I'm wondering if it is possible to selectively paste from the clipboard.
For example, lets say you copy 3 diff cell values to the clipboard.
I would like to have a predefined set of hotkeys ie. ctrl+shift+alt+1 ,
2, 3 that would paste the 1st 3 slots (whatever they are called) from
the clipboard respectively. I can assign the keys, I'm just wondering
how to access the different slots in the clipboard in Office...

Cheers

Job




  #3   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default access to the multiple values on clipboard

R.VENKATARAMAN wrote:
do this experiment
open the cliboard toolbar (views-toobar)
now one by one copy some three cells (only copy)
these 3 copies will be palced in clipboard toolbar
you can copy any of them or all of them

is this what you want
or as this message is <programme newsgroup do you want a vba solution



Job wrote in message
...

I'm wondering if it is possible to selectively paste from the clipboard.
For example, lets say you copy 3 diff cell values to the clipboard.
I would like to have a predefined set of hotkeys ie. ctrl+shift+alt+1 ,
2, 3 that would paste the 1st 3 slots (whatever they are called) from
the clipboard respectively. I can assign the keys, I'm just wondering
how to access the different slots in the clipboard in Office...

Cheers

Job





Yes, I know that you can copy multiple items on the clip board. I want
to, via vba, access the different things captured on the clipboard...
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default access to the multiple values on clipboard

itis possible to use clipboard in vba (see help in vba) i would prefer to
use of variables

variables suppose a,b,c dim them as range
set a=something
set b=something else etc

you want to copy to F1
range("f1")=a
etc.

try something like this
if necessarsy do loops

may not be elegant
not tested.

Job wrote in message
...
R.VENKATARAMAN wrote:
do this experiment
open the cliboard toolbar (views-toobar)
now one by one copy some three cells (only copy)
these 3 copies will be palced in clipboard toolbar
you can copy any of them or all of them

is this what you want
or as this message is <programme newsgroup do you want a vba solution



Job wrote in message
...

I'm wondering if it is possible to selectively paste from the clipboard.
For example, lets say you copy 3 diff cell values to the clipboard.
I would like to have a predefined set of hotkeys ie. ctrl+shift+alt+1 ,
2, 3 that would paste the 1st 3 slots (whatever they are called) from
the clipboard respectively. I can assign the keys, I'm just wondering
how to access the different slots in the clipboard in Office...

Cheers

Job





Yes, I know that you can copy multiple items on the clip board. I want
to, via vba, access the different things captured on the clipboard...




  #5   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default access to the multiple values on clipboard

I don't think I'm explaining myself very well. If you copy the values
7,8,9,10 into the clipboard. I want to know how programatically to access
each of the values ie.

Set objCB = New DataObject
objCB.GetFromClipboard
objCB.GetText(1)
objCB.GetText(2)
objCB.GetText(3)
objCB.GetText(4)
Where the 1,2,3,4 are the different slot or elements of the clipboard. I've
read a lot of things that look for text or a specific kind of format that is
on the clipboard, however, I'm interested in being able to reference the
individual elements of the clipboard. It would be the same as seeing the
above values in the clipboard taskpane, and clicking on the 3rd in the list,
or '8' and having that 'paste' into the sheet where ever you choose. As
opposed to clicking the '8', I would like to access that element via vba.

Hopefully this explains more clearly what I'm attempting to do..




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 & Access 2007 SP1 - Data in the Clipboard "damaged" Ron West Excel Discussion (Misc queries) 3 February 2nd 09 12:49 PM
clipboard clearing in excel, access, word... troy stud Excel Discussion (Misc queries) 0 October 27th 06 11:02 PM
multiple copies from web page to clipboard Shaka Excel Discussion (Misc queries) 0 June 14th 06 07:47 PM
Pasting multiple cells using Office Clipboard doughboy Excel Discussion (Misc queries) 2 July 22nd 05 06:22 AM
Excel clipboard should allow pasting of formulae not just values Desperate Don Excel Discussion (Misc queries) 0 April 28th 05 05:54 PM


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