Kentetsu
Well-known Member
- Joined
- Jan 22, 2004
- Messages
- 520
I don't know why I'm having such difficulty with this. I've been searching all day and have tried 20 variations of code, but nothing seems to work.
I've got this doing everything I want it to, all I need to add is a sorting function (Ascending, Column C, table has headers)
Here's what I've got so far:
Any assistance is appreciated...
I've got this doing everything I want it to, all I need to add is a sorting function (Ascending, Column C, table has headers)
Here's what I've got so far:
Rich (BB code):
With Sheets("Names")
.Visible = True
.Unprotect Password:="*****"
Set the_sheet = Worksheets("Names")
Set table_list_object = the_sheet.ListObjects("Table1")
'Add a row to the Table
Set table_object_row = table_list_object.ListRows.Add
last_row_with_data = the_sheet.Range("Table1").End(xlUp).Row
Sheets("Add New User").Range("E5:E6").Copy
.Cells(Rows.Count, "B").End(xlUp)(1).PasteSpecial Paste:=xlPasteValues, _
Transpose:=True
' Here I Need to Sort Ascending on Column C
.Protect Password:="*****"
.Visible = xlSheetVeryHidden
End With
Any assistance is appreciated...