Copy and paste word when double clicked

Kalua1231

New member
Joined
Aug 24, 2016
Messages
8
Reaction score
0
Points
0
Copy specific row Column (C) and show in ROW 2, COLUMN (C). very simple will have attachment with pics and codes. Thank You.

Code Beneath here
-----------------------------------------------------------------------------------------------

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim dccolumn As Integer
Dim dcvalue As String

dccolumn = ActiveCell.Column
dcvalue = ActiveCell.Value

If Application.Intersect(ActiveCell, [headers]) Is Nothing Then
  If ActiveCell.Value <> "" Then
    ActiveSheet.ShowAllData
    ActiveSheet.ListObjects("Table134").Range.AutoFilter Field:=5, Criteria1:=Selection.Text
  End If
End If
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False

Dim rownumber As Integer

rownumber = ActiveCell.Row

If Application.Intersect(ActiveCell, [headers]) Is Nothing Then
  If ActiveCell.Value <> "" Then
    Range("a1:i5000").Interior.ColorIndex = xlNone
    Range("a" & rownumber & ":i" & rownumber).Interior.Color = RGB(255, 255, 9)
  End If
End If
End Sub
 

Attachments

  • Input Word 1.jpg
    Input Word 1.jpg
    92.2 KB · Views: 10
  • Input Word 2.jpg
    Input Word 2.jpg
    100.1 KB · Views: 7
  • Fix 8 20.xlsm
    203.3 KB · Views: 10
Last edited by a moderator:
Please comment if it is understandable or would need more information. Thank you guys
 
Back
Top