View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mangesh Mangesh is offline
external usenet poster
 
Posts: 18
Default How to run sub menu items from VBA

I am trying to run a sub menu item from the toolbar through VBA. How
do i do it? Lets say for example, i want to run Data Sort.

CommandBars("Worksheet Menu Bar").Controls("Data").Index gives me the
index of menu item 'Data'. But how to get the index for Sort.

something like this is what i am looking for, although this is not
valid
CommandBars("Worksheet Menu Bar").Controls("Data").Controls("Sort")

Basically i want to automate one of the submenu actions.

Mangesh