'
Public Sub Copy_Range()
On Error Resume Next
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
'
Dim Luachon
Dim sht As Worksheet
Dim Cell_Des As Long
Dim SourceRange As Range
Dim DestRange As Range
'
Set SourceRange = Range("Form")
Cell_Des = CLng(Val(Sheets("INPUT").Cells(2, 2)))
'
Luachon = MsgBox("Ban muon copy GIA TRI (nhan Yes) hay copy ca DINH DANG (nhan No)?", vbYesNo)
For Each sht In Worksheets
If sht.Name <> "INPUT" And IsEmpty(sht.Cells(Cell_Des, "A")) Then
Set DestRange = sht.Cells(Cell_Des, "A")
If Luachon = 7 Then
SourceRange.Copy DestRange
Else
With SourceRange
Set DestRange = sht.Cells(Cell_Des, "A").Resize(.Rows.Count, .Columns.Count)
End With
DestRange.Value = SourceRange.Value
End If
End If
Next sht
'
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub