View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
AndyJ AndyJ is offline
external usenet poster
 
Posts: 5
Default Adding Columns in Excel 2007 (2003 Compatibility Mode)

both Please advise,

I am trying to add columns as per the following code:

Columns("B:B").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove

When i check the worksheet, columns A and B have been selected,

If I run the following code:

Columns("C:C").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove

only Column C is selected.

Can anyone help?