Skip to content

Instantly share code, notes, and snippets.

@DuongAQ
Last active April 2, 2018 03:15
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/642f0fddfdffd1e69f1edf5cf7c482b9 to your computer and use it in GitHub Desktop.
Save DuongAQ/642f0fddfdffd1e69f1edf5cf7c482b9 to your computer and use it in GitHub Desktop.
Sub PrintArea_Test03() 'Thiết lập vùng in tới dòng cuối
Sheet1.PageSetup.PrintArea = Sheet1.Range("B2", sheet1.Range("G" & rows.count).End(xlUp)).Address
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment