Sort a Range before pasting Excel VBA
问题 I'm using the following code to copy a particular range from a Workbook to another Workbook , its working fine. But now i need to sort the Range in ascending order just before pasting to the destination sheet without changing the source. Please help. With Workbooks(strExcelFile).Sheets(strSheetName) .Range(strRange).Copy End With ActiveSheet.Range(strDestCell).PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False 回答1: Take advantage of the fact that once you