Created
January 17, 2018 11:10
-
-
Save DuongAQ/9679484c9a1119b9ba1c391c33dd2c4d 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
Option Explicit | |
Sub Sort_Multi_Sheet() 'Excel VBA to Sort All Sheets in Workbook in Ascending Order | |
Dim ws As Worksheet | |
For Each ws In ThisWorkbook.Worksheets | |
ws.Range("A2", ws.Range("G" & Rows.Count).End(xlUp)).Sort [D2], 1 | |
Next ws | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment