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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Watch MrExcel Video

Forum statistics

Threads
1,102,623
Messages
5,487,923
Members
407,614
Latest member
fuslela

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top