On Sun, 28 Dec 2008 17:31:24 -0000, "androo..." <rodv[ at ]globalnet.co.uk> wrote:
[Quoted Text] >How do I find out in VBA if a toolbar called "avCombined" exists in Word >2003? > >Thanks in advance >androoooooooooooooooo.................
Sub x() Dim oCB As CommandBar For Each oCB In ActiveDocument.CommandBars If LCase(oCB.NameLocal) = "avcombined" Then 'do something with oCB, such as MsgBox "avCombined exists" Exit For ' don't need to look any further after finding one End If Next End Sub
-- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
|