+ Reply to Thread
Results 1 to 7 of 7

Copy cell value to clipboard

Hybrid View

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Copy cell value to clipboard

    Hi all

    I need a VBA to caopy the selected cell value toclipboad so as I can paste into MS word or other non-excel document.

    Can any one help me to do so..

    Thank you in advance
    Ahmed
    GUURE

  2. #2
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Copy cell value to clipboard

    Bump no response

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: Copy cell value to clipboard

    Hi Axmed.cm
    Have a look at this link: http://www.ozgrid.com/forum/showthread.php?t=27189
    Option Explicit 
     
    Sub Excel_to_Word() 
        Dim appWord As Word.Application 
         
        Set appWord = New Word.Application 
         
        appWord.Visible = True 
         
        Range("A1:A20").Copy 
         
        appWord.Documents.Add.Content.Paste 
         
    End Sub
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Copy cell value to clipboard

    Dear Sintek
    Thank you for your respond

    I tired but is encounters this error

    Thanks
    Attached Images Attached Images

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: Copy cell value to clipboard

    Try changing appword to msword or wordapp

    https://www.mrexcel.com/forum/excel-...xcel-word.html
    Last edited by sintek; 05-03-2017 at 09:23 AM. Reason: Added Link

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Copy cell value to clipboard

    Hi,

    You might use code like this
    Public Sub copyCellValueToClipboard()
    
       With GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
          .SetText ActiveCell.Value
          .PutInClipboard
       End With
    
    End Sub
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Copy cell value to clipboard

    Thank you dear

    Working well
    "SOLVED"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy cell value to clipboard
    By adj7388 in forum Excel General
    Replies: 8
    Last Post: 03-25-2019, 11:45 AM
  2. copy clipboard to active cell
    By ybortony in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2015, 11:33 AM
  3. Copy a Cell to Clipboard Using Checkbox
    By nupema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2015, 04:44 AM
  4. Find Cell Value and Copy to ClipBoard
    By Panelmaker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2013, 11:31 AM
  5. How to copy the selected text in a cell to the clipboard with VBA
    By srschiller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2010, 10:50 AM
  6. Copy one cell to an other but colors do not copy. While not using clipboard to copy.
    By chuckchuckit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2010, 03:08 AM
  7. Copy content of cell to clipboard
    By amitmodi_mrt in forum Excel General
    Replies: 3
    Last Post: 09-08-2009, 11:26 AM

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