주어진 범위의 셀을 설정하면, 당신이 그것을 선택할 필요가 없습니다. 대신 그것을 참조 할 수 있습니다. 당신은 또한 설정하면 워크 시트는 결국에 붙여 넣기 할 객체 위의 다음 선택하지 않고, 더 응축하고 직접적인 방식으로 기록 될 수있다 :
Sub test()
Set cell = Range("A2") 'implicit reference to activesheet in activeworkbook
Set ws1 = Sheets("one") 'requires that you have a sheet named "one" in the activeworkbook
Set ws2 = Sheets("two") 'requires that you have a sheet named "two" in the activeworkbook
'assign the value to somewhere in the ws1 and ws2
ws1.Range("A2") = cell
ws2.Range("A2") = cell
End Sub
편집 : 복사본을 사용
버전에 수식 유지
Sub test()
Set cell = Range("A2") 'implicit reference to activesheet in activeworkbook
Set ws1 = Sheets("one") 'requires that you have a sheet named "one" in the activeworkbook
Set ws2 = Sheets("two") 'requires that you have a sheet named "two" in the activeworkbook
'assign the value to somewhere in the ws1 and ws2
cell.Copy Destination:=ws1.Range("A2")
cell.Copy Destination:=ws2.Range("A2")
End Sub