책 내용 질문하기
변수명도 정확히 맞춰야 하나요?
도서
2026 시나공 컴퓨터활용능력1급 실기 기본서
페이지
96
조회수
14
작성일
2026-09-20
작성자
임*연
첨부파일
다음 코드는 오답으로 처리되었습니다.
Private Sub cmd검색_Click()
thisRow = cmb가입자명.ListIndex + 4
txt상품종류.Value = Cells(thisRow, 3)
txt지점명.Value = Cells(thisRow, 4)
txt성별.Value = Cells(thisRow, 5)
txt가입일.Value = Cells(thisRow, 6)
txt납입시점.Value = Cells(thisRow, 7)
txt연이율.Value = Format(Cells(thisRow, 8), "0.0%")
txt월불입액.Value = Format(Cells(thisRow, 9), "#,###")
End Sub
변수명을 "참조행"이 아닌 "thisRow"로 썼다는 이유로 5점이 까였네요.