không hiểu câu nàyEm có file này, bây giờ em muốn chỉ in khi được chọn vào các ô: Chọn in A, chọn in B, Chọn in C
Sub InBienBan()
Dim str As String
Dim Arr As Variant
With Sheets("Sheet1")
If Cells(11, 6) Then str = str & vbBack & "A"
If Cells(12, 6) Then str = str & vbBack & "B"
If Cells(13, 6) Then str = str & vbBack & "C"
Arr = Split(Mid(str, 2), vbBack)
Sheets(Arr).Select
ActiveWindow.SelectedSheets.PrintPreview
'Sheets("A").PrintOut
'Sheets("B").PrintOut
'Sheets("C").PrintOut
End With
End Sub