#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding rows based on no of rows specified from a given position nanette Excel Worksheet Functions 1 July 9th 08 02:29 PM
adding some rows in the middle of adding some other rows Janis Excel Programming 3 October 4th 07 03:20 AM
Adding five new rows every 40 rows in a spreadsheet? Olzki Excel Discussion (Misc queries) 8 May 18th 07 02:14 AM
Adding Rows offsets to working rows across two worksheets tom Setting up and Configuration of Excel 3 July 30th 06 07:54 PM
adding rows Antoine Excel Discussion (Misc queries) 4 December 22nd 04 02:19 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"