K
Kevin Towers
What I am trying to do is to get a filter that searches all tasks within a
date range and for a single resource.... all with VBA. I can do this easily
with autofilter or the new filter menu items, but have not figured out how to
create a common filter within VBA. So I've resorted to doing it manually in
VBA by scanning the tasks and setting flags. I am looping through the
project task trying to find those that match a particular resource. The
following code generates a runtime error (#1101. "Argument value is not
valid")
If CheckField(jTask.ResourceNames, R.Name, "contains") Then
jTask.Flag5 = True
End If
I have confirmed that the ResourceNames string is correct and the R.name
string is correct.
Does anyone have any idea why this error is happening?
Thanks
Kevin
date range and for a single resource.... all with VBA. I can do this easily
with autofilter or the new filter menu items, but have not figured out how to
create a common filter within VBA. So I've resorted to doing it manually in
VBA by scanning the tasks and setting flags. I am looping through the
project task trying to find those that match a particular resource. The
following code generates a runtime error (#1101. "Argument value is not
valid")
If CheckField(jTask.ResourceNames, R.Name, "contains") Then
jTask.Flag5 = True
End If
I have confirmed that the ResourceNames string is correct and the R.name
string is correct.
Does anyone have any idea why this error is happening?
Thanks
Kevin