B
Benjamino5
I have two questions about Commandbars I haven't yet found answers to. Any
tips would be greatly appreciated!
1) I want several CommandBarButtons to call the same subprocedure, but with
different arguments. Yet it seems you can't put arguments in the .OnAction
property--you can only put the name of a sub in there. So how do you make a
button call a sub and also pass it an argument?
I'm guessing the Parameter property might be the answer, but I don't know
how to use it, so a code sample would really help me.
2) When creating a floating palette (commandbar with the property
"msoFloating"), I want the buttons on it to be arranged vertically, one on
top of the next, NOT horizontally. How do I do this? The .Width property of a
commandbar is apparently read-only, so I can't set it.
tips would be greatly appreciated!
1) I want several CommandBarButtons to call the same subprocedure, but with
different arguments. Yet it seems you can't put arguments in the .OnAction
property--you can only put the name of a sub in there. So how do you make a
button call a sub and also pass it an argument?
I'm guessing the Parameter property might be the answer, but I don't know
how to use it, so a code sample would really help me.
2) When creating a floating palette (commandbar with the property
"msoFloating"), I want the buttons on it to be arranged vertically, one on
top of the next, NOT horizontally. How do I do this? The .Width property of a
commandbar is apparently read-only, so I can't set it.