setting a custom field in a macro

K

ks

I'm trying to write a macro where I get information from one custom,
project-level field, a string, and place it in another custom,
project-level field which is also a string.
So far, the way I've been able to access the value is by storing
Project.Task.field_one in a string variable I've already declared.
However, when I try to write Project.Task.field_two = string_variable,
I get an error message saying "The argument value is not valid".

Any thoughts?
 
J

JackD

Would something like this work for you? It works for me.

Sub Macro1()
Dim s As String
s = ActiveProject.CustomDocumentProperties("foo")
ActiveProject.CustomDocumentProperties("bar") = s
End Sub

Or do you mean something different by a project-level field?

-Jack
 

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