kamal1jacq
New Member
- Joined
- Feb 4, 2010
- Messages
- 12
Hi,
The below macro does not help me to sort data. Can someone help me in to sort the data through macro or correct the below coding and help me to identify what the mistake is.
Sub sorting()
' Sorting Macro
'CODING TO CHECK THE NETTING UPLOADED
MsgBox "open Netting uploaded template"
C = Application.GetOpenFilename
Set Wrk3 = Workbooks.Open(C)
Application.GoTo ActiveSheet.Range("A1"), True
Dim rStart As Range
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Set rStart = Selection
With ActiveSheet.Sort
.SortFields.Add Key:=Range("A1"), Order:=xlAscending
.Header = xlYes
.Apply
End With
End Sub
The below macro does not help me to sort data. Can someone help me in to sort the data through macro or correct the below coding and help me to identify what the mistake is.
Sub sorting()
' Sorting Macro
'CODING TO CHECK THE NETTING UPLOADED
MsgBox "open Netting uploaded template"
C = Application.GetOpenFilename
Set Wrk3 = Workbooks.Open(C)
Application.GoTo ActiveSheet.Range("A1"), True
Dim rStart As Range
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Set rStart = Selection
With ActiveSheet.Sort
.SortFields.Add Key:=Range("A1"), Order:=xlAscending
.Header = xlYes
.Apply
End With
End Sub
Last edited: