|
多次尝试 没有用 换Excel版本也没有用 调整格式也无用 是代码有问题吗 Sub 宏6()
Sub 宏6()
'
' 宏6 宏
'
'
Range("L9").Select
ActiveCell.FormulaR1C1 = "=IF(RC[-10]="""","""",INDIRECT(""'""&RC2&""'!A15""))"
Range("A9:F108").Select
Selection.FillDown
ActiveWindow.SmallScroll Down:=-117
Range("H9:J108").Select
Selection.FillDown
ActiveWindow.SmallScroll Down:=-111
Range("K9108").Select
Selection.FillDown
ActiveWindow.SmallScroll Down:=-120
Range("A9:K108").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("M:M").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
Range("O7").Select
Application.ScreenUpdating = False
For Each sh In Worksheets
Dim M As Integer
For M = 300 To 8 Step -1
If sh.Cells(M, 14) = "是" Then
sh.Cells(M, 14).EntireRow.Delete
End If
Next
Next sh
Application.ScreenUpdating = True
End Sub
|
|