Get DropDown Lists in 2007 out of AddIns

E

Ed

(Is there a new 2007 board that I should be writing to with this question?)

I have written a large program for 2003 (and before). I can create dropdown
lists for various selections I need to make, and position them in the
toolbar without problem. This is the essential code:

Set newlist = mybar.Controls.Add(Type:=msoControlDropdown)


For n = 1 To ubound(filenamed)

newlist.AddItem filenamed(n)

Next

newlist.OnAction = "DoStuff"



THE PROBLEM:

In 2007, the commandbar (list) appears in the AddIns tab. I have created a
new tab (called "My Program") that houses other commands regarding the
program (so I can at least move those command buttons out of the generic
"AddIns" tab). But I cannot figure out how to place the dropdown list into
the "My Program" tab. Any ideas?



Ed (in VA)
 
J

Jean-Guy Marcil

Ed said:
(Is there a new 2007 board that I should be writing to with this question?)

I have written a large program for 2003 (and before). I can create dropdown
lists for various selections I need to make, and position them in the
toolbar without problem. This is the essential code:

Set newlist = mybar.Controls.Add(Type:=msoControlDropdown)


For n = 1 To ubound(filenamed)

newlist.AddItem filenamed(n)

Next

newlist.OnAction = "DoStuff"



THE PROBLEM:

In 2007, the commandbar (list) appears in the AddIns tab. I have created a
new tab (called "My Program") that houses other commands regarding the
program (so I can at least move those command buttons out of the generic
"AddIns" tab). But I cannot figure out how to place the dropdown list into
the "My Program" tab. Any ideas?

For a discussion on what can/how it can be done, see
http://pschmid.net/blog/category/office-2007/office-2007-developer/
and
http://pschmid.net/blog/2006/10/18/68
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top