求老师们一个vba代码怎么写?

2025-05-21 11:11:54
推荐回答(1个)
回答1:

v = ""
for j=2 to 4 'B\c\d
    if cells(i,j)=4 or cells(i,j)=5 then
        v="真"
        exit for
    end if
next j
if v<>"" then cells(i,5) = v 'Ei