Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コードのこの部分の最後の行でタイプの不一致エラーが発生します。
Dim test As Object Set test = Mid(Trim(row.Cells(1, 19).Value), 9, 1) Mod 2
どうすれば解決できますか?
VBA には型階層がなくObject、オブジェクト インスタンス用であり、プリミティブ型を保持できません。
Object
使うLong
Long
Dim test As long test = Mid(Trim(row.Cells(1, 19).Value), 9, 1) Mod 2