Try this with a fixed column.
Note the lines to make it a selectable column if you wanted.
Public Sub DeleteColOnWord()
Dim coltocheck As Range
Dim thename As String
On Error GoTo endit
Set coltocheck = Range("D

")
' Set coltocheck = Application.InputBox(Prompt:= _
' "Select A Column", Type:=8)
thename = InputBox("enter a name")
For Each i In coltocheck
If i.Value = thename Then _
i.EntireColumn.Delete
Next i
endit:
End Sub
Gord
On 28 Feb 2007 13:34:53 -0800, "Bernie" <(E-Mail Removed)> wrote:
>On Feb 28, 3:55 pm, Gord Dibben <gorddibbATshawDOTca> wrote:
>> Bernie
>>
>> Will the name be found only in one column or many columns?
>>
>> If many, which one or more of the many would you like deleted?
>>
>> Gord Dibben MS Excel MVP
>>
>> On 28 Feb 2007 12:40:39 -0800, "Bernie" <b...@aol.com> wrote:
>>
>>
>>
>> >In Excel, I need a macro that will delete a column based on a cell
>> >that will contain a name based on an input box.
>>
>> >Thanks,
>> >Bernie- Hide quoted text -
>>
>> - Show quoted text -
>
>
>
>The name will be found only in one column. Thanks!
>