VBA初心者です。
VBAのプログラミングについて質問があります。
以下のプログラムを作ってみたのですが、
下の2行の部分で問題が起こっているらしいです。
具体的には
実行時エラー'13':
型が一致しません。
というエラーです。
本当にどうすればよいのかわからず困っています!
ご回答お願いします。
VBA
1Dim result_x As Variant 2 Dim result_y As Variant 3 4 5 result_x = select_helper(x) 6 result_y = select_helper(y) 7 8 Dim i As Integer 9 10 For i = 1 To 3 11 Dim cellx As Integer 12 Dim ii As Integer 13 ii = i - 1 14 Dim celly As Integer 15 16 //以下の2行でエラーが出ているらしいです。 17 cellx = CInt(result_x(ii)) 18 celly = CInt(result_y(ii)) 19 //ここまでの2行です。 20 21 Cells(cellx + 5, y) = 絞り込み出力(CStr(Cells(cellx + 5, y)), i) 22 23 Cells(x + 5, celly) = 絞り込み出力(CStr(Cells(x + 5, celly)), i) 24 Next i
VBA
1Private Function select_helper(x As Integer) As Variant
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/10 06:17 編集
2017/06/10 06:16
2017/06/10 12:43
2017/06/12 09:08