Modify to suit. Assumes Amount is in the FIRST row and you want formula just
below insertion.
Sub FindTextInsertCol()
mc = Rows("1").Find(What:="Amount", LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=False).Column
Columns(mc + 1).Insert
Cells(2, mc + 1).Formula = "=a1*2"
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"David" wrote in message
...
Hi,
I am trying to create a macro that will add a column after a specific text
and title the column add formula,
example, i have a sheet with 50 columns one of which is titled "Amount" i
want the macro find that title and add a column to the right of it and
title
it "new column" and add a formula.
really appreciate any help.
thanks
David