开发者

Show GroupItems in Word VBA

开发者 https://www.devze.com 2023-03-20 07:56 出处:网络
I am usin开发者_StackOverflow中文版g this code to show the group number, how can I show the groupitems number?

I am usin开发者_StackOverflow中文版g this code to show the group number, how can I show the groupitems number?

Public Sub Shapename()
  MsgBox (Selection.ShapeRange.Name)
End Sub

Is there an easy way to figure out the shape names and numbers in Word?


That would be the ZOrderPosition property:

Public Sub Shapename()
  MsgBox (Selection.ShapeRange.Name & " " & Selection.ShapeRange.ZOrderPosition)
End Sub
0

精彩评论

暂无评论...
验证码 换一张
取 消