- " ". , 99% .
Select something
Do something to the selection
Select something else
Do something to the selection
, .
, 'Range' '_Worksheet' , 1004, , , "". (, ) , , . Range Range. Range, Excel .
. , ActiveSheet , Excel ActiveSheet.Range( "" ). ( ). , , . , , , .
Excel , , "_Object" ( "_Worksheet" ), - . , , , . , , .
.
Private Sub cmdRecord_Click()
Dim shSource As Worksheet
Dim shDest As Worksheet
Dim rNext As Range
'Me refers to the sheet whose class module you're in
'Me.Parent refers to the workbook
Set shSource = Me.Parent.Worksheets("BxWsn Simulation")
Set shDest = Me.Parent.Worksheets("Reslt Record")
Set rNext = shDest.Cells(shDest.Rows.Count, 1).End(xlUp).Offset(1, 0)
shSource.Range("Result").Copy
rNext.PasteSpecial xlPasteFormulasAndNumberFormats
Application.CutCopyMode = False
End Sub
, , , - . Me.Parent ActiveWorkbook. , - .
, , , , , , , , ScreenUpdating. , .