Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() From the top (headings) row, I want to check each row until I find the heading "telephone" at which point I want to insert a column to the right. How does one do this in a macro? many thanks, Pete |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim res as Variant
res = application.Match("telephone",rows(1),0) if not iserror(res) then columns(res+1).Insert End if -- Regards, Tom Ogilvy "Italian Pete" wrote in message ... From the top (headings) row, I want to check each row until I find the heading "telephone" at which point I want to insert a column to the right. How does one do this in a macro? many thanks, Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Column after specific text title the new column and add for | Excel Discussion (Misc queries) | |||
insert a blank column between each column in a data file | Excel Discussion (Misc queries) | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
Macro - Insert&Label Column, if the labeled column doesn't exist | Excel Programming | |||
Need Macro to Find Column Heading -- if none, then insert new column | Excel Programming |