Skip to content

Instantly share code, notes, and snippets.

@DuongAQ
Created February 9, 2018 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuongAQ/e06eb2882d48f90ba16b74d8f802634a to your computer and use it in GitHub Desktop.
Save DuongAQ/e06eb2882d48f90ba16b74d8f802634a to your computer and use it in GitHub Desktop.
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