Hi,
Can anyone help me?
I just want to print value in each worksheets but got error.
Sub xy() For Each ws In ActiveWorkbook.Worksheets Debug.Print ws.Name & " " & ws.Name.Range("AR601").Value Next ws End Sub
Hi,
Can anyone help me?
I just want to print value in each worksheets but got error.
Sub xy() For Each ws In ActiveWorkbook.Worksheets Debug.Print ws.Name & " " & ws.Name.Range("AR601").Value Next ws End Sub
Hi, Faridwahidi,
ws is set for the worksheet and Name is part of ws so omitt the name part:
Ciao,Sub xy() For Each ws In ActiveWorkbook.Worksheets Debug.Print ws.Name & " " & ws.Range("AR601").Value Next ws End Sub
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Hi Ciao,
Thanks a lot.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks