按ALT+F11 进入vba页面,在右边代码窗口中粘贴如下代码,然后按F5运行该代码Sub dd() Dim sht As Worksheet For Each sht In Sheets With sht.PageSetup .PrintTitleRows = "$1:$2" .PrintTitleColumns = "" End With NextEnd Sub
不明白你说什么意思,能不能详细说明一下问题