?
Solved

Call vba function from field formula in MS Project

Posted on 2009-05-20
1
Medium Priority
?
1,566 Views
Last Modified: 2013-11-15
I'm trying to reference a custom vba function from a field formula in MS Project:
I'm in the Gant View:
Right Click on Number1 Column and select Customize Fields.
Highlight field Number1 and click Formula button.
This brings up the formula editor where I enter the reference to my custom (public) function in Module1, for example:  my_function("Foo") where "Foo" is defined as a string parameter in the function.
I get the error:  "The formula returns a syntax error or contains a reference an unrecognized field or function name"
The function works fine when called from a subroutine in VBA.
How do you call a custom VBA function from a field formula?
0
Comment
Question by:tlanza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
harisrashid earned 1500 total points
ID: 24641204
you cannot associate vba code with field formula. associate a macro or subroutine and call it manually or on some event.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question