Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 16 Jan 2006 10:31:14 +0100,    group: microsoft.public.word.vba.customization        back       


MS-Project VBA Question   
Hi NG ,
I am new in the field of VBA and have a question / problem.
In one project file I defined a field ( customized field Number 13 )
and renamed it as "StatDur" and entered a formula there in.
With VBA I want to read out the contents of this field and display
it via MsgBox. Ihave entered following code

num = Application.CustomFieldValueListGetItem(pjCustomTaskNumber13,
pjValueListValue, 3)

Syntax is :
Ausdruck .CustomFieldValueListGetItem(FieldID, Item, Index)

Thats my code entered in VBA ( as above ):
num = Application.CustomFieldValueListGetItem(pjCustomTaskNumber13,
pjValueListValue, 3)

I want to store the contents of this field from row 3 in num and want to
display it via MsgBox.

It wont work since the VBA-Editor brings a failure where I am entering the
row number 3
as Index and I dont know why and how to solve this problem.
Can onyone give a helping hand.
Thanks in advance
Gru

-- 
Cevikel
Tel. : 0911-433-6329
mailto:halidun.cevikel@siemens.com
date: Mon, 16 Jan 2006 10:31:14 +0100   author:   Cevikel

Re: MS-Project VBA Question   
The group that you have posted to is for questions relating to the use of 
VBA in Word.  For assistance with the use of VBA in Project, you should post 
to microsoft.public.project.vba.

-- 
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Cevikel"  wrote in message 
news:dqfp53$mc3$1@daniel-new.mch.sbs.de...
> Hi NG ,
> I am new in the field of VBA and have a question / problem.
> In one project file I defined a field ( customized field Number 13 )
> and renamed it as "StatDur" and entered a formula there in.
> With VBA I want to read out the contents of this field and display
> it via MsgBox. Ihave entered following code
>
> num = Application.CustomFieldValueListGetItem(pjCustomTaskNumber13,
> pjValueListValue, 3)
>
> Syntax is :
> Ausdruck .CustomFieldValueListGetItem(FieldID, Item, Index)
>
> Thats my code entered in VBA ( as above ):
> num = Application.CustomFieldValueListGetItem(pjCustomTaskNumber13,
> pjValueListValue, 3)
>
> I want to store the contents of this field from row 3 in num and want to
> display it via MsgBox.
>
> It wont work since the VBA-Editor brings a failure where I am entering the
> row number 3
> as Index and I dont know why and how to solve this problem.
> Can onyone give a helping hand.
> Thanks in advance
> Gru
>
> -- 
> Cevikel
> Tel. : 0911-433-6329
> mailto:halidun.cevikel@siemens.com
>
>
>
date: Mon, 16 Jan 2006 13:10:49 +0100   author:   Doug Robbins - Word MVP

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us