Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
or rather pastespecial if applied to a range and paste if applied to the sheet
"Mister T" wrote: maybe if you step through your macro, you might find execution does not actually stop. Instead, maybe your code Worksheets("ClosedLoan").Rows(11) is missing the paste method? "Xiaoping Yao" wrote: Hi the Please help. The following code dosn't work. Similar code worked perfect in other cases: Private Sub MovetoClosedLoan() Dim selr As Integer 'get selected row selr = Selection.Row 'insert rows Worksheets("ClosedLoan").Rows(11).Insert 'copy from loanpipeline to closed loan Worksheets("LoanPipeLine").Rows(selr).Copy Worksheets("ClosedLoan").Rows(11) 'delete from loanpipeline Worksheets("LoanPipeLine").Rows(selr).Delete 'end of sub End Sub The execution will stop right after 'insert rows. The rest of the code will not been executed and no error message. Thanks. Xiaoping |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Exit Sub | Excel Discussion (Misc queries) | |||
Run when exit | Excel Worksheet Functions | |||
Exit when its a Mac | Excel Programming | |||
Exit when its a Mac | Excel Programming | |||
If a called sub exit, how to the caller exit right away? | Excel Programming |