我在 Excel VBA 2010 中创建了一个多页表单。 如何获取该多页中的页数?
谢谢, 勒索
最佳答案
试试这个:
Dim mulpage as Control, pge as Page, counter as Integer
For Each mulPage In Me.Controls
If TypeName(mulPage) = "MultiPage" Then
For Each pge In mulPage.Pages
counter = counter + 1
Next pge
End If
Next
引用文献:
关于vba - Excel VBA MultiPage - 获取页数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14693271/