Excel中如何根据分页符获取单元格区域?
主要是想实现将待打印的页储存到临时空间后,一并打印!
[解决办法]
For i = 1 To ActiveSheet.HPageBreaks.Count
Debug.Print ActiveSheet.HPageBreaks.Item(i).Location.Address
Next i
For i = 1 To ActiveSheet.VPageBreaks.Count
Debug.Print ActiveSheet.VPageBreaks.Item(i).Location.Address
Next i
[解决办法]
这个有用吗?http://blog.csdn.net/ChoasRules/archive/2010/02/21/5314530.aspx