ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding Rows (https://www.excelbanter.com/excel-programming/414519-adding-rows.html)

leimst

Adding Rows
 
I'm looking for a good way to identify the last row and column, in a list on
a protected sheet, and then add 10 rows by executing a macro assign to a
"button".

Thanks in advance for any help,

Brian



Tausif

Adding Rows
 
Hi ,
There are many methods for identifying the last row & column.

You may want to check these links before trying out a particular method.

1) http://www.mrexcel.com/td0058.html
2) http://www.ozgrid.com/VBA/ExcelRanges.htm

For the code to unprotect the sheet & insert 10 rows, just a record a macro
for the same & use that code.

HTH,
--
Tausif Mohammed


"leimst" wrote:

I'm looking for a good way to identify the last row and column, in a list on
a protected sheet, and then add 10 rows by executing a macro assign to a
"button".

Thanks in advance for any help,

Brian




Bob Phillips[_3_]

Adding Rows
 

With Activesheet

.Unprotect
LastRow = ,Cells(.Rows.Count, "A").End(xlUp).Row
With .Rows(LastRow + 1)

'do something
End With
.Protect
End With

--
__________________________________
HTH

Bob

"leimst" wrote in message
...
I'm looking for a good way to identify the last row and column, in a list
on a protected sheet, and then add 10 rows by executing a macro assign to
a "button".

Thanks in advance for any help,

Brian





All times are GMT +1. The time now is 09:55 PM.

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