- Excel VBA 質問スレ Part43 [無断転載禁止]©2ch.net
569 :デフォルトの名無しさん[]:2016/10/25(火) 21:48:16.58 ID:VE8oMcUB - for a=1 to 10
dim b as integer b=b+1 debug.print b next a としたら、bは次々と1ずつ増えます。 おかしくないですか? dim b as integerの行を通過するときにbはリセットされると思うのですが。
| - Excel VBA 質問スレ Part43 [無断転載禁止]©2ch.net
573 :デフォルトの名無しさん[]:2016/10/25(火) 22:20:21.51 ID:VE8oMcUB - そうだとしても
dim b as integer を2行書くとエラーが出るのに for next無いでdim b as integerを1つ書いたら複数回その行を通過しているのにエラーが出ないのはおかしくないですか?
|
|