All I want to do currently is add a column to an existing Excel Document from VFP 6.0 sp3. I can open it and change cell values all I want, but I need to add a column, so I recorded an Excel 2k macro, and modified code accordingly.<br><br>I get an error saying can't access insert property of range class.<br><br>please help!<br><br>*************************BEGIN CODE HERE*******************<br><br><br>oleExcel = Createobject ("Excel.Application"<br>oleExcel.application.workbooks.open "filename"<br><br>newcolumn = chr(13)<br><br>titlemo = 10<br>titleot = 11<br><br>shift1 = "shift:=xltoright"<br><br>with oleExcel<br><br> .columns(newcolumn + ":" + newcolumn).select<br> .range(str(newcolumn + "6".activate<br> .Selection.Insert (shift1) <-- ERROR HERE!<br> .Selection.Insert (shift1)<br> .Selection.ColumnWidth = 1.57<br> .Range(newcolumn + titlmo).select<br> .ActiveCell.FormulaR1C1 = sfna<br> .Range(newcolumn + str(titlot)).select<br> .ActiveCell.FormulaR1C1 = "Churn"<br> .Range(newcolumn + str(titleot)).Select<br> .Selection.Borders(xlDiagonalDown).LineStyle = xlNone<br> .Selection.Borders(xlDiagonalUp).LineStyle = xlNone<br> .Selection.Borders(xlEdgeLeft).LineStyle = xlNone<br> .Selection.Borders(xlEdgeTop).LineStyle = xlNone<br> With .Selection.Borders(xlEdgeBottom)<br> .LineStyle = xlContinuous<br> .Weight = xlThin<br> .ColorIndex = xlAutomatic<br> EndWith<br> .Selection.Borders(xlEdgeRight).LineStyle = xlNone<br>endwith<br>