'=================================================================================== 'Function Name :ExpandAllMenusFor Notepad ' Created By :Jai ' Description : Expand all menuitems in the Notepad ' Created : Oct-16- 08 '=================================================================================== Function ExpandAllMenus() Window("regexpwndtitle:= Notepad").Activate With Window("regexpwndtitle:= Notepad").WinMenu("Menuobjtype:= 2") nTopMenuCount = .GetItemProperty("", "SubMenuCount") For i = 1 To nTopMenuCount sTopItemPath = .BuildMenuPath("", i) sTopItemLabel = .GetItemProperty(sTopItemPath, "Label") sReport = sReport + sTopItemLabel + vbNewLine bHasSubMenu = .GetItemProperty(sTopItemPath, "HasSubMenu") If bHasSubMenu Then ...