Created
February 9, 2018 11:33
-
-
Save DuongAQ/e06eb2882d48f90ba16b74d8f802634a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub An_Cot_Vidu02() | |
Dim i As Integer | |
'Tìm cột cuối cùng trong bảng | |
Dim LastColumn as long | |
Lastcolumn = Sheet1.Range("A1").SpecialCells(xlCellTypeLastCell).Column | |
'Ẩn cột từ cột C tới cột cuối cùng | |
For i = 3 To LastColumn | |
Sheet1.Cells(1, i).EntireColumn.Hidden = True | |
Next i | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment