PDA

View Full Version : how do i get to code behind a custom menu



neojapanese
06-08-2007, 08:28 AM
hello. I have this word doc with custom dropdown menu that someone made

one of the options on the menu is "show report"

how can i know for sure that function or the name of the code that option is running when i select it?
the menu seems to be made via code...i can not see where in the code the menu is made. I cant even tell if the menu is premade for that matter.
it just shows up when i use the doc file

also is there a way to trigger that option in the custom menu via VBA?

i am so lost. thank you in advance

lucas
06-08-2007, 08:47 AM
Can you delete the info on the page if it's private and post the document here so we can look at it?

fumei
06-08-2007, 08:55 AM
Yes, it is difficult to given concrete answers without being able to see the file. But generically...

how can i know for sure that function or the name of the code that option is running when i select it?You can run code to get the name of the actual procedure called by using the .OnAction method.

also is there a way to trigger that option in the custom menu via VBA?Yes, by making a call to the same procedure by name.

neojapanese
06-08-2007, 11:16 AM
how do i attach a the doc to a post?

lucas
06-08-2007, 11:39 AM
Simple, just hit Post Reply at the bottom left of the last post and when the window comes up type your message then scroll the page down and look for a button that says Manage attachments...