A. For whatever reason I can't get this macro to sort the top cell of the selection.
Sub sortPOC()
Application.ScreenUpdating = False
Sheets("POC Information").Activate
Project_Columns = Application.WorksheetFunction.CountA(Range("i3:xfd3"))
Active_Rows = Application.WorksheetFunction.CountA(Columns("C:C"))
With ActiveWorkbook.Worksheets("POC Information").Sort
.SetRange Range(Cells(3, 2), Cells(Active_Rows + 5, Project_Columns + 8))
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Cells B2 and B3 are merged for title purposes if that makes a difference.
B. How do I specify I want the sort to sort by column C:C or the header "Last Name" (Cells C2 and C3 merged)?
C. How do I post the spreadsheet? I can't find any way to add a file.
Sub sortPOC()
Application.ScreenUpdating = False
Sheets("POC Information").Activate
Project_Columns = Application.WorksheetFunction.CountA(Range("i3:xfd3"))
Active_Rows = Application.WorksheetFunction.CountA(Columns("C:C"))
With ActiveWorkbook.Worksheets("POC Information").Sort
.SetRange Range(Cells(3, 2), Cells(Active_Rows + 5, Project_Columns + 8))
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Cells B2 and B3 are merged for title purposes if that makes a difference.
B. How do I specify I want the sort to sort by column C:C or the header "Last Name" (Cells C2 and C3 merged)?
C. How do I post the spreadsheet? I can't find any way to add a file.