投稿/コメントを表示します。

ニックネームについて
Sub w05()
Dim ws As Worksheet
Dim cnt As Long
cnt = 2
For Each ws In Worksheets
If ws.Range("K" & Rows.Count).End(xlUp).Value < 0 Then
Worksheets("集計").Range("B" & cnt) = ws.Name’(A)
cnt = cnt + 1
End If
Next

End Sub
(A)にwsをworksheetにするとエラーになります。
ニックネームをつけると必ずニックネームを使用しないといけないのでしょうか。
2015/02/08 18:13