Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub findbottom_paste22()
Dim rng1 As Range Dim rng2 As Range With ActiveSheet .Protect Password:="password", userinterfaceonly:=True Set rng1 = .Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) 'row below last Set rng2 = .Cells(Rows.Count, 1).End(xlUp).EntireRow 'entire last row End With rng2.Copy Destination:=rng1 'copy last row to next row End Sub "password" is whatever you have set for a password There is no "findbutton" Maybe you mean "findbottom" which is part of the macro name. Gord On Tue, 27 Jan 2009 18:16:01 -0800, tommy .(donotspam) wrote: maybe this will help you understand better rows 1 through 39 are ulocked rows 40 through end are locked when i click the command button, i want a new row inserted (in row 40) copy row 39 and paste onto the new row 40 another thing, what is this findbutton ? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with creating a Macro | Excel Discussion (Misc queries) | |||
Creating a Macro? | Excel Discussion (Misc queries) | |||
VBA macro creating pdf | Excel Discussion (Misc queries) | |||
Creating Macro | Excel Discussion (Misc queries) | |||
Creating a macro | New Users to Excel |