Sub test() Sheets("sheet2").Select With Sheets("sheet1") For r = 1 To 5 Columns(1).Replace .Cells(r, 1), .Cells(r, 2), xlWhole Next End With End Sub
第2个回答 2011-06-07
dim i as ....... if sheets(1).cells(i,1).value = sheets(2).cells(i,1).value then Sheets(2).cells(i,10.value = Sheets(1).cells(i,1).value endif 这样似乎没什么意义,只有根据你的实际数据才能写出来,可能的话发[email protected] 明天或者后天出差去远处,可能一天都在路上,急的话就不要发了,个人承诺,会在有条件的第一时间处理你的问题