인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

kychampion's profile image
kychampion

asked

Data Automation (with VBA)

Selecting a cell range_9 (Intersect method_example)

혹시

Written on

·

211

1

교집합 범위내의 타겟에 문자를 입력 하면 타겟 왼쪽에 현재 시간을 넣겟다고 구문을 만드는데요

중간에

if  VBA.Len(targer) > 1 then

target.offset( , 1) = 현재시간

이렇게 응용해보려는데 안되네요..

VBAexcel

Answer 2

1

kychampion님의 프로필 이미지
kychampion
Questioner

아 실수했네요! Vba 전혀 몰랐는데 동영상보고 많이 배우고 있습니다^^!! 감사합니다.

0

엑셀디자인님의 프로필 이미지
엑셀디자인
Instructor

offset 속성의 형식을 정확히 이해하셔야 합니다.
offset(행,열)..이니까
타겟셀을 기준으로 왼쪽이면 offset(,-1)입니다.

if len(target) > 1 then
   target.offset(,-1) = 현재시간

kychampion's profile image
kychampion

asked

Ask a question