用VBA替换EXCEL单元格内容

2024年11月20日 03:24
有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