引號裏的是字符串, &符號連接字符串,剩下的就是變量做簡單數學運算。我前麵寫的多了一個引號,我再重寫一下,加倆括號,清洗一些:
ActiveChart.SetSourceData Source:=Range("'Sheet1'!$D$" & (Row*31 + 3) & ":$J$" & (Row*31 + 18))
Range 的參數字符的格式其實一猜就知道了,也可以查online help
引號裏的是字符串, &符號連接字符串,剩下的就是變量做簡單數學運算。我前麵寫的多了一個引號,我再重寫一下,加倆括號,清洗一些:
ActiveChart.SetSourceData Source:=Range("'Sheet1'!$D$" & (Row*31 + 3) & ":$J$" & (Row*31 + 18))
Range 的參數字符的格式其實一猜就知道了,也可以查online help
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2024 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy