Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Ok I am kind of new to this site and have been trying to figure this out for a while...
I need to sort a worksheet in a workbook by the acount number 1st and then by completed date...the cell numbers for these two colums are currently..
i for the account number
M for completed dateCurrently I use this formula in VB Scripts
Private Sub Workbook_Open()
Dim c As Range
Set c = Worksheets("Work History").Cells
c.Sort Key1:=c.Range("A1"), order1:=xlDescending, Header:=xlYes
End SubThis script works to sort the worksheet by account number (if i copy the account number to Column A), but I would rather have it sort column i and M....

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |