当前位置: 代码迷 >> VBA >> Excel中怎么根据分页符获取单元格区域
  详细解决方案

Excel中怎么根据分页符获取单元格区域

热度:4492   发布时间:2013-02-26 00:00:00.0
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
------解决方案--------------------------------------------------------
HTML code
这个有用吗?http://blog.csdn.net/ChoasRules/archive/2010/02/21/5314530.aspx
  相关解决方案