somnath6309
New Member
I have recently read an article from the webpage Ron de Bruin, Microsoft Office Excel MVP regarding Merging data from different sheets. I have not under stood some expressions regarding which I required some detailed clarifications. I have given the full code with the attached file with highlighted question areas for the purpose of convenience of the solution provider. I have put here my questions in Green Color so that the reader can understand my question. Kindly provide answers if possible.
Function LastRow(sh As Worksheet)
OnErrorResumeNext
LookIn:=xlFormulas, _ why looking in Excel Formulas ?
SearchDirection:=xlPrevious, _ Why direction is xlprevious ?
MatchCase:=False).Row The total line is not understandable.
OnErrorGoTo 0 Why we use on error go to o Statement ?
.ScreenUpdating = False why these two lines have been used ?
.EnableEvents = False
EndWith
DestSh.Cells(Last + 1, "H").Resize(CopyRng.Rows.Count).Value = sh.Name This is not understandable to me
Function LastRow(sh As Worksheet)
OnErrorResumeNext
LookIn:=xlFormulas, _ why looking in Excel Formulas ?
SearchDirection:=xlPrevious, _ Why direction is xlprevious ?
MatchCase:=False).Row The total line is not understandable.
OnErrorGoTo 0 Why we use on error go to o Statement ?
.ScreenUpdating = False why these two lines have been used ?
.EnableEvents = False
EndWith
DestSh.Cells(Last + 1, "H").Resize(CopyRng.Rows.Count).Value = sh.Name This is not understandable to me