Cám ơn bạn nhiều,
quanghai1969
cho mình hỏi các thay đổi hình ảnh đến 1 chỗ khác thì phải làm sao vậy,
Và file của mình có 1 logo của cty khi chạy thị logo của mình cũng bị xóa luôn.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.Calculation = 3
Application.ScreenUpdating = False
Dim r, n
Dim Pic As String
On Error Resume Next
If Target.Address = [b2].Address Then
For Each sh In ActiveSheet.Shapes
sh.Delete
Next
Pic = [b2].Value & ".jpg"
With ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\" & Pic)
.Left = [
e2].Left: .Top = [
e2].Top
.Width = [
e2].Width: .Height = [
e2:
e6].Height
End With
End If
Application.ScreenUpdating = True
Application.Calculation = 1
End Sub
xin ban giup đỡ thay đổi code trên ở chỗ nào để mình điều chỉnh.
cám ơn bạn rất nhiều!!!!!!!