I am moving columns from one worksheet to another. In doing so I am using the scrip to copy the entire column.
ColumnsToCopy = Array("State", "City", "Address", "Phone")
Set SourceSht = ActiveSheet
Set newWbk = Workbooks.Add
Set NewSht = newWbk.Sheets(1)
NewSht.Name = "Students"
Where I get stuck is trying to address the particular column and not the range. I know that I can address a column by a range but I would rather address it by the column as the order of them might change in the future.
How would I address the "State" Column by sorting descending.
ColumnsToCopy = Array("State", "City", "Address", "Phone")
Set SourceSht = ActiveSheet
Set newWbk = Workbooks.Add
Set NewSht = newWbk.Sheets(1)
NewSht.Name = "Students"
Where I get stuck is trying to address the particular column and not the range. I know that I can address a column by a range but I would rather address it by the column as the order of them might change in the future.
How would I address the "State" Column by sorting descending.