ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inserting cells in MS Excel 2007 (https://www.excelbanter.com/excel-programming/425427-inserting-cells-ms-excel-2007-a.html)

smith06374

Inserting cells in MS Excel 2007
 
I am trying to select a range of cells (2x50apprx). I need to insert a
blank cell beneath each existing cell (not an entire row) without
having to select each cell individually. I'm sure there is a macro for
this, but I have no idea how to create it. Can someone advise how to
do this?

Jacob Skaria

Inserting cells in MS Excel 2007
 
Hi

The below code will insert a cell in column 2 for every row.

For intRow = 1 To 100 Step 2
Cells(intRow + 1, 2).Insert Shift:=xlDown
Next



All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com