Các bạn sửa giúp code hiện tên khách hàng (1 người xem)

Người dùng đang xem chủ đề này

ndhmoney686

Thành viên thường trực
Tham gia
25/4/12
Bài viết
376
Được thích
104
Mình có sự cố ở trong file đính kèm. Nhờ các Bạn xem file và sửa giúp mình. Cảm ơn các Bạn nhiều!
 

File đính kèm

Mình có sự cố ở trong file đính kèm. Nhờ các Bạn xem file và sửa giúp mình. Cảm ơn các Bạn nhiều!
Bạn sữa câu như sau:
PHP:
Private Sub lstResult_DblClick(ByVal Cancel As MSForms.ReturnBoolean) 
 On Error Resume Next  
If Not Intersect([F8:F2223], ActiveCell) Is Nothing Then 
   Cells(ActiveCell.Row, "F") = lstResult.List(lstResult.ListIndex, 0)     
 ActiveCell.Offset(1).Select 
 End If 
 If Not Intersect([c8:c2223], ActiveCell) Is Nothing Then 
    Cells(ActiveCell.Row, "c") = lstResult.List(lstResult.ListIndex, 0)   
  ActiveCell.Offset(1).Select 
 End If
End Sub
 

File đính kèm

Lần chỉnh sửa cuối:
Bạn sữa câu như sau:
PHP:
Private Sub lstResult_DblClick(ByVal Cancel As MSForms.ReturnBoolean) 
 On Error Resume Next  
If Not Intersect([F8:F2223], ActiveCell) Is Nothing Then 
   Cells(ActiveCell.Row, "F") = lstResult.List(lstResult.ListIndex, 0)     
 ActiveCell.Offset(1).Select 
 End If 
 If Not Intersect([c8:c2223], ActiveCell) Is Nothing Then 
    Cells(ActiveCell.Row, "c") = lstResult.List(lstResult.ListIndex, 0)   
  ActiveCell.Offset(1).Select 
 End If
End Sub

Theo chỉ dẫn của Bạn mình sửa được rồi. Cảm ơn Bạn tvxdgt nhiều!
 

Bài viết mới nhất

Back
Top Bottom