Excel中怎么根据分页符获取单元格区域
1个回答
2017-01-08 · 互联网+时代高效组织信息化平台
关注
展开全部
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
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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询