Dim i As Integer, x As Integer
Dim sRange As String
Dim ws As Worksheet
Application.ScreenUpdating = False
'Set the Worksheet object to the Active Sheet
Set ws = ActiveSheet
'Get the range from the Range Cell
sRange = Range("A53").Value
x = ws.Range(sRange).Columns.Count ' počet sloupců
ws.Range(sRange).Copy
ws.Range("A56").PasteSpecial xlPasteAll, xlPasteSpecialOperationNone, False, True
Application.CutCopyMode = False
ws.Range("A56:B" & 56 + x).Sort ws.Range("B56"), xlDescending ' + počet sloupců
'Clear the worksheet object
Set ws = Nothing
End Subcitovat