Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created December 22, 2016 08:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Sub test()
Dim rg As Range, row As Range
Set rg = Sheet1.Range("B2").CurrentRegion
For Each row In rg.Rows
' in ra cửa sổ Immediate Window(Ctrl + G)
Debug.Print row.Cells(1, 1)
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment