누구든지이 코드를 짧은 줄로 최적화하는 좋은 방법을 찾도록 도와 줄 수 있습니까? 나에게 좋은 제안을 해줘.ForLoop 용 VBA Excel 최적화
With Selection
.Value = "Apple"
.Font.Bold = True
.Offset(1).Value = "Orange"
.Offset(1).Font.Bold = True
.Offset(2).Value = "Strawberry"
.Offset(2).Font.Bold = True
.Offset(3).Value = "Pear"
.Offset(3).Font.Bold = True
.Offset(4).Value = "Pineapple"
.Offset(4).Font.Bold = True
.Offset(5).Value = "Grape"
.Offset(5).Font.Bold = True
.Offset(6).Value = "Banana"
.Offset(6).Font.Bold = True
.Offset(8).Value = "Durian"
.Offset(8).Font.Bold = True
.Offset(8, 1).Value = "Rambutan"
.Offset(8, 1).Font.Bold = True
.Offset(8, 2).Value = "Dragonfruit"
.Offset(8, 2).Font.Bold = True
.Offset(8, 3).Value = "Mango"
.Offset(8, 3).Font.Bold = True
End With
오류가 없거나 '사용 방법'에 대한 질문이있는 경우 최적화 질문은 [코드 검토] (http://codereview.stackexchange.com/) 자매 사이트에서 StackOverflow로 더 적합합니다. –