How to create new filter by checking multiple conditions

A

Aditya

Hi All,

I am developing addon for MSProject 2007 using C#.Net. I have a combo box
for my custom filters. I am in a situation to check multiple conditions for
i.e (more than one FieldName and Value comparision).

please send your suggestions.
Thanks.
 
R

Rod Gill

Hi,

Create a Filter in Project that does the tests you want, whilst recording a
macro. Then convert from VBA to C#. Addins and any code using automation on
an Office application is quicker and easier to write in VB (optional
parameters etc) so you may prefer to swap!

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 
A

Aditya

Thanks Rod, could you give me sample code to test it in a macro. I am using
the function Application.FilterEdit(...)
 
R

Rod Gill

In Project select Tools, Macro, record new macro then create the filter you
want. Then stop recording and view the code.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 

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