Publish New and Changed Assignments macro error

  • Thread starter Conrad Santiago
  • Start date
C

Conrad Santiago

I want to write a macro that will publish new and changed assignments. To
start, I created this macro with just the one line. When I run it, I get a
"Type Mismatch" error. I feel I need additional code to set it up to work.
Any ideas?

Sub f360_Co_Publish_List_Misc()

Pub_File = PublishNewAndChangedAssignments(False, pjPublishScopeAll,
False, "")

End Sub

Thanks in advance for any response.
--Conrad Santiago
 
S

Sumant

Conrad..

"PublishNewAndChangedAssignments" method does not returns any value.

so the culprit is ..
Pub_File = PublishNewAndChangedAssignments(False, pjPublishScopeAll, False,
"")

Instead call should be made as -

PublishNewAndChangedAssignments False, pjPublishScopeAll, False, ""

This will definitely work. :)

-Sumant
 
C

Conrad Santiago

Sumant,
This works! Thanks!

I didn't know you could use this fomat. I thought it was either

x = PublishNewAndChangedAssignments (False, pjPublishScopeAll, False, "")

or

PublishNewAndChangedAssignments ShowDialog:=False,
ItemsScope:=pjPublishScopeAll, etc.

--Conrad Santiago
 

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