我在使用一些非常简单的代码时遇到了一些麻烦,我已经阅读了多个帖子和论坛,但似乎无法找到问题:
Sub ownership()
Dim row, column, x, y As Integer
For row = 2 To 42
For column = 4 To 18
For x = 2 To 16
For y = 5 To 45
If ActiveWorkbook.Sheets("orka").Cells(3, row).Text = Left(ActiveWorkbook.Sheets("values").Cells(x, y).Text, ActiveWorkbook.Sheets("orka").Cells(2, row).Value) Then ActiveWorkbook.Sheets("orka").Cells(column, row).Text = "X"
Next
Next
Next
Next
End Sub
十分感谢