MWE
07-25-2008, 07:50 PM
I have recently upgraded from Office2000 to Office2003. As I recollect, temporary menu created with VBA in Word2000 were persistent, i.e., they stayed even after Word exited. Not a big deal, just add something to the Before_Close macro to trash the menu. It appears that Word2003 has a different bug. Temporary menus stay when Word exits, but they are often corrupted so that when Word is started again, the top level menu is there but the actual menu pics are what were submenu picks previously.
As an example, a VBA procedure creates a temp menu called "A" with menu items A1, A2 and A3. A3 has two menus beneath it, A31 and A32:
A
A1
A2
A3
A31
A32
I close the application that created "A" and restart Word. 50% of the time, "A" is still there on the menu bar and its picks are correct, but the other 50% of the time "A" is still there, but now contains just A31 and A32.
A
A31
A32
:dunno
If I manually create "B" with the same menu structure as "A" above, it is by definition a permanent menu and it is quite persistent and is not corrupted.
Has anyone had a problem like this and/or might suggest why this is happening?
UPDATE: I should probably also pose another question: Is there some sort of natural (or unnatural?) rule that states that posting to this forum automatically fixes any "mysterious" problem one might have. I think this is worthy of investigation. 1) Simply preparing the post forces you to think very carefully about what is happening and sometimes that is enough for you to recognize what is wrong. Not that this has ever happened to me ... :devil2: But I have also experienced several cases where the process of post preparation did not yield an answer, so I did post and then discovered that the problem has mysteriously disappeared and could not be duplicated even though it was easy to duplicate before the item was posted
As an example, a VBA procedure creates a temp menu called "A" with menu items A1, A2 and A3. A3 has two menus beneath it, A31 and A32:
A
A1
A2
A3
A31
A32
I close the application that created "A" and restart Word. 50% of the time, "A" is still there on the menu bar and its picks are correct, but the other 50% of the time "A" is still there, but now contains just A31 and A32.
A
A31
A32
:dunno
If I manually create "B" with the same menu structure as "A" above, it is by definition a permanent menu and it is quite persistent and is not corrupted.
Has anyone had a problem like this and/or might suggest why this is happening?
UPDATE: I should probably also pose another question: Is there some sort of natural (or unnatural?) rule that states that posting to this forum automatically fixes any "mysterious" problem one might have. I think this is worthy of investigation. 1) Simply preparing the post forces you to think very carefully about what is happening and sometimes that is enough for you to recognize what is wrong. Not that this has ever happened to me ... :devil2: But I have also experienced several cases where the process of post preparation did not yield an answer, so I did post and then discovered that the problem has mysteriously disappeared and could not be duplicated even though it was easy to duplicate before the item was posted