Multiple column table advice please

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
3,380
Office Version
2007
Platform
Windows
Ive only done tables in one column.
I have some customers details as follows.
Column CV Name
Column CX Address
Column CZ Grass Paid
Column DB Grass Mileage

I needed to delete a customer so right click delete rows only deleted there name leaving the other 3 cells to the right filled.
I then relised that no table was here.
Please can you advise how i make a table for more than 1 column.
Each column has a header in row 1

Also let me tell you the below info should it make any difference or stop working etc so just a heads up realy.

I use the below macro to sort the above details.

Code:
Sub SortGrassList()'
' SortCV Macro
'


'
    Dim LR As Long
    Sheets("INFO").Activate
    LR = Cells(Rows.Count, "CV").End(xlUp).Row
    Range("CV1:DB" & LR).Select
    ActiveWorkbook.Worksheets("INFO").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("INFO").Sort.SortFields.Add Key:=Range("CV2:CV" & LR) _
        , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("INFO").Sort
        .SetRange Range("CV1:DB" & LR)
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
    Range("CV2").Select
End Sub
On a worksheet in the same workbook i also select a customers name in column B and then using VLOOKUP column C, D & E are populated.
This info is taken from the columns CV CX CZ DB mentioned above.

My goal for this request is so i can delete a row should a customer no longer require me etc.
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Watch MrExcel Video

Forum statistics

Threads
1,102,510
Messages
5,487,310
Members
407,590
Latest member
Grobler

This Week's Hot Topics

Top