slayer1957
Board Regular
- Joined
- Jan 9, 2017
- Messages
- 50
Good day,
I have this code, when clicing a cell it copies to clipboard, it works as it should. However when pasting into any other program it pastes with a space/enter function to all programs. How do i copy and paste without the space at end of the selected cell text.
Also when selecting the text, maybe it should clear previous clipboard?
If anyone knows how on this forum please help, i have tried looking but cannot find code just to remove the space.
Thanks in advance.
I have this code, when clicing a cell it copies to clipboard, it works as it should. However when pasting into any other program it pastes with a space/enter function to all programs. How do i copy and paste without the space at end of the selected cell text.
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:H50")) Is Nothing Then
Target.Copy
End If
End Sub
Also when selecting the text, maybe it should clear previous clipboard?
If anyone knows how on this forum please help, i have tried looking but cannot find code just to remove the space.
Thanks in advance.