用VBA替换EXCEL单元格内容

2024-11-20 03:24:54
推荐回答(1个)
回答(1):

sub replaceCode()
dim sht as worksheet, rng as range
set sht = worksheets("XX")
set rng = sht.range("L2")

rng.value = ringht$(rng.value,3)

end sub