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
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
Bump no response
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!!!
Dear Sintek
Thank you for your respond
I tired but is encounters this error
Thanks
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
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.
Thank you dear
Working well
"SOLVED"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks