id
属性与之前不同。Mid
和 InStr
Sub DropDown2_onAction(control As IRibbonControl, id As String, index As Integer)
Dim iLoc As Long, sZoom As String
iLoc = InStr(id, "_")
If iLoc = 0 Then Exit Sub
sZoom = Mid(id, iLoc + 1)
If IsNumeric(sZoom) Then ActiveSheet.PageSetup.Zoom = CInt(sZoom)
End Sub