Task Drop Down (or Combo Box) width adjustment

P

Paulos

Hi I have a Ms Project Document in whic I am writing some vba code to control
certain functions of the code. I am 90% complete but have hit a small
stumbling stone.

When in the gannt chart view I have a custom text field which has a value
list attched to it - when you hit the drop down button it displays the value
list. This works fine except that the values are sometimes wider the the
dropdown constraints.

I am trying to work out some code to allow me to have this dropdown (or
combobox?) unconstrained or constrained to the width of the longest string.
Many similar code to do this seems to exist - but not specifically for Ms
Project and not outside a custom VBA Form.

maybe part of the problem could be is that I can't seem to find an object
for this task dropdown and interact with it directly.

Any Suggestions would be greatly appreciated!

Thanks in Advance

Paul.
 
W

www.projectserver.cz

Hi it's probably nearly impossible modify the size of combo box. :(
All what you can do is increate witdth of column.

Another option is that you can customize the project guide, to display
informations about actual task, and you will be able can controll size
of the combo box with your custom property.
 
W

www.projectserver.cz

COM add in help you load your code when project pro is started but
your problem is how to modify behavior of "grid" you shoud try use
low level win32 api but my sugestion is dont do that. Because it will
be extreemly difficult.
 

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