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.
x 軸と y 軸のセルA1から始まる値を使用して、.csv ファイルからグラフを作成する Excel マクロがあります。、B1の範囲の値を持つ複数の .csv ファイルを追加すると、セルが空であるというエラーがスローされます。なぜこれが起こるのか分かりますか?A3B3
A1
B1
A3
B3
行を変更する
Plot_y = Range("C1", Selection.End(xlDown)).Rows.Count Plot_x = Range("D1", Selection.End(xlDown)).Rows.Count
に
Plot_y = Range("C" & Rows.Count).End(xlUp).Row Plot_x = Range("D" & Rows.Count).End(xlUp).Row
そしてさらに試みる。