Excel VBAのお話。
a = Cells(i, 1).Value
b = Cells(j, 2).Value
if a = b then
といった作業をさせようとした時にうまくいかなかった。
いろいろ調べたところ、
Cells(i, 1).NumberFormatLocal = "@"
Cells(j, 2).NumberFormatLocal = "@"
a = Cells(i, 1).Value
b = Cells(j, 2).Value
if a = b then
としてフォーマットを整えないといけないらしい。
"@"が文字列に当たるらしい。なんじゃそりゃ。