返回列表 上一主題 發帖

清除 列印範圍外的格線

清除 列印範圍外的格線

各位好,

我想請問一下, 我要怎麼清除列印範圍外的格線?   (以下是清除清除列印範圍外的"資料", 但格線還是在)

Dim pValues As Variant
With ActiveSheet
    pValues = .Range(.PageSetup.PrintArea).Value
    .Cells.ClearContents
    .Range(.PageSetup.PrintArea).Value = pValues

End With
End Sub

感謝!

回復 2# hugh0620


    非常感謝您!

我剛有試了, 是成功的, 謝謝 :D

TOP

        靜思自在 : 站在半路,比走到目標更辛苦。
返回列表 上一主題