ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   inserting rows on multiple worksheets (https://www.excelbanter.com/excel-programming/299381-inserting-rows-multiple-worksheets.html)

katie

inserting rows on multiple worksheets
 
Hi
This piece of code inserts a new row on the current
worksheet, above the active cell.
Anyone know how this can be expanded to insert a new row
in exactly the same position on worksheet 2?
Many Thanks
katie

Nikos Yannacopoulos[_5_]

inserting rows on multiple worksheets
 
Katie,

Worksheets("Sheet2").Rows(ActiveCell.Row).EntireRo w.Insert

HTH,
Nikos

"katie" wrote in message
...
Hi
This piece of code inserts a new row on the current
worksheet, above the active cell.
Anyone know how this can be expanded to insert a new row
in exactly the same position on worksheet 2?
Many Thanks
katie





All times are GMT +1. The time now is 10:28 PM.

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