+ Reply to Thread
Results 1 to 8 of 8

copy to clipboard help

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    7

    copy to clipboard help

    Hello All

    Can anyone please help me? I have a formula ="<a title="""&H14&""""&" href""http://www."&I14&""""&">"&H14&"</a>"

    Is there a way to add a simple code so that if i click on the cell it automatically copies to the clip board without having to press control + C

    Thank you

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: copy to clipboard help

    yes there is... using the worksheet automated subs

    I suggest to use the rightclick for this....

    Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
    Selection.Copy
    End Sub

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: copy to clipboard help

    Sorry for being stupid but i don't understand how to do that

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: copy to clipboard help

    OK I try to walk you thru it.

    Click the developer tab
    Click the view code
    There will be to drop down lists
    expand the left one
    choose worksheet

    go to the right list choose beforerightclick

    insert: selection.copy

    go back to the spreadsheet and save it

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: copy to clipboard help

    now im going to be really silly but i cant even find the developer tab MS Excel 2010

    ok found it now

    for anyone who needs to know

    1.Click the File tab.
    2.Click Options.
    3.Click Customize Ribbon.
    4.Under Customize the Ribbon and under Main Tabs, select the Developer check box.
    Last edited by simon26r; 04-05-2013 at 04:21 PM.

  6. #6
    Registered User
    Join Date
    04-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: copy to clipboard help

    thank you, I have that working now but is there a way to get it to just copy say colum D

  7. #7
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: copy to clipboard help

    yes...

    mind you that column "D" is column #4

    Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
    if target.column=4 then Selection.Copy
    End Sub

  8. #8
    Registered User
    Join Date
    04-04-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: copy to clipboard help

    Hi. I have tried this and it worked but when i changed to just a column 7 for G it does not work for me
    copy.jpg

+ 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