Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created November 22, 2017 07:53
Show Gist options
  • Select an option

  • Save ndthanh/a24872b05553b6e4b6724b7daf095cf4 to your computer and use it in GitHub Desktop.

Select an option

Save ndthanh/a24872b05553b6e4b6724b7daf095cf4 to your computer and use it in GitHub Desktop.
'
' End(xlUp): dòng cuối cùng chứa dữ liệu trong vùng có tên là NamedRange và không bị ẩn
'
jLastVisibleRange = oSht.Range("NamedRange").Offset(oSht.Range("NamedRange").Rows.Count, 0).End(xlUp).Row
'
' End(xlDown): dòng cuối cùng có chứa dữ liệu trong vùng có tên là NamedRange và không bị ẩn
'
jLastVisibleRange2 = oSht.Range("NamedRange").End(xlDown).Row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment