ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   insering a row to spreadsheet using VB (https://www.excelbanter.com/excel-programming/288721-insering-row-spreadsheet-using-vbulletin.html)

Alex[_13_]

insering a row to spreadsheet using VB
 
Please advise,
how to insert a row to Excel spreadseet from VB.

Thanks


mudraker[_121_]

insering a row to spreadsheet using VB
 
You will need to know where you wish to insert the rows


insert one row at row 5

Rows(5).Insert


insert multiple rows starting at row 5
Rows("5:8").Insert


---
Message posted from http://www.ExcelForum.com/


Alex[_13_]

insering a row to spreadsheet using VB
 
Thanks a lot.


-----Original Message-----
You will need to know where you wish to insert the rows


insert one row at row 5

Rows(5).Insert


insert multiple rows starting at row 5
Rows("5:8").Insert


---
Message posted from http://www.ExcelForum.com/

.



All times are GMT +1. The time now is 05:12 AM.

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