excel 2007 vba:如何引用HPageBreaks
我正在尝试编写一个宏,它可以查看工作表保留的水平分页符列表,看起来 HPageBreaks 应该正是这样。我可以添加或删除分页符,但我似乎无法隔离集合本身来查看其内容。即使添加监视并查看 ActiveSheet.HPageBreaks,也只会显示一个计数字段等于 0 的通用对象,而不管现有分页符如何。
我现在对此真的很困惑。有什么方法可以查看工作表中现有的分页符吗?列出它们出现在哪些行上/之间会很棒。
I'm trying to write a macro which can look into the list of horizontal page breaks that a worksheet keeps, and it seems like HPageBreaks should be exactly that. I can add or remove page breaks from it, but I can't seem to isolate the collection itself to look at its contents. Even adding a watch and looking at ActiveSheet.HPageBreaks just brings up a generic looking object with a count field equal to 0 regardless of existing page breaks.
I'm really confused about this now. Is there any way to look into the existing page breaks within a sheet? A listing of what rows they occur on/between would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该可以帮助您开始:
这里有一些(相当少的)参考:
http://msdn.microsoft.com/en-us/library/aa661442(office.10).aspx
http://msdn.microsoft.com/en-us/library/aa206426(office.10).aspx
This should get you started:
Here are some (rather scanty) references.:
http://msdn.microsoft.com/en-us/library/aa661442(office.10).aspx
http://msdn.microsoft.com/en-us/library/aa206426(office.10).aspx