+ Reply to Thread
Results 1 to 14 of 14

Send from clipboard to excel sheet

  1. #1
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Send from clipboard to excel sheet

    Hi!

    I don't think thats possible, but if yes please teach me!

    I want to send the content of the clipboard to an excel macro when the excel sheet
    is not the active window. So I'm working in a different application and when I press
    a key combination, the content of my clipboard will be send to excel.

    Is that somehow possible?

    Thanks a lot!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,294

    Re: Send from clipboard to excel sheet

    Not with Excel. You'd need your active program to be in charge of that.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    Ok!

    So I will have to tab back to the excel sheet.

    And can I paste there the clipboard content with a click on a button?

    I saw something about 'sendkey'. Is that the right direction?

    Thanks!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Send from clipboard to excel sheet

    Why not use Ctrl-V which is the window Paste shortcut?

  5. #5
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    Because with that I have to select the cell and do a key combination.
    Thats do long! The user will do that around 1000 times a month.

    So one click vs selecting the cell and Ctrl-v!

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Send from clipboard to excel sheet

    Hello Gombi,

    Which application are you using? If it supports COM then the copying and pasting to the clipboard can be done with the Windows API.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Send from clipboard to excel sheet

    Which application ?

    If this application uses VBA you can paste with

    Please Login or Register  to view this content.



  8. #8
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    It's a factory intern software. I don't know much about the application. But anyway there is no change to change anything and I don't have admin privileges on the system. So sending somthing to excel will not work for me.

    But I would like to try to paste the content with a click on a button in excel.

    How can I do that?


    Thanks for the answers!

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Send from clipboard to excel sheet

    Hello Gombi,

    We are shooting in the dark here because we don't know anything about your application software, not even the name. Which begs the question: How can we provide a solution to transfer information between the programs when one is a complete mystery?

  10. #10
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    Thats not a public application! I already forgot about the option to send it to excel
    because that will not work in my case.

    I just want a macro that pasts my clipboard content in a cell when I click on a button in
    the excel sheet. Can I do that with 'sentkey'?

    Thanx!

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,294

    Re: Send from clipboard to excel sheet

    Where is it supposed to paste to? There are plenty of paste buttons already on the toolbar so I don't see why code is needed at all?

  12. #12
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,294

    Re: Send from clipboard to excel sheet

    For the record, you can actually do this from Excel using the Windows API and keyboard hooks, but it's not something I would recommend if you don't know what you are doing - if Excel were to crash, for example, with the hook in place, the results might be unpredictable.
    With that caveat in mind, here's an example (it hooks the PrintScreen key in all open apps and pastes to the activecell in Excel):

    Normal module:
    Please Login or Register  to view this content.
    ThisWorkbook module:
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    Thank you.

    Let's say I wanna paste the clipboard content witch is a name like "mister smith" to A1
    with one click on a button within the excel sheet. With one click, A1 should be selected
    and the name should be pasted into it.
    Like simulating ctrl-v.

  14. #14
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Send from clipboard to excel sheet

    Please Login or Register  to view this content.
    Ok! I do it like that!
    Last edited by gombi; 10-04-2010 at 07:54 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1