Re: How to capture MsgBox result and paste into Excel
- From: "Marty" <Marty@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 15:27:01 -0700
Hi Mike,
You have responsed three times to posts of mine and every time you tell me
to post on the server or developer list. I try and post my questions on the
Highest level Microsoft Project list level so it will go to all three
subordinate lists (including the developer and server lists). Does the post
not work this way?
"Mike Glen" wrote:
>
> Hi Marty ,
>
> Try posting on the developer newsgroup. Please see FAQ Item: 24. Project
> Newsgroups. FAQs, companion products and other useful Project information
> can be seen at this web address: http://www.mvps.org/project/.
>
> Mike Glen
> Project MVP
>
>
> wrote:
> > I have generated a number of VBA modules that count various types of
> > tasks in a project and display the count total in a Message box. But
> > there doesn't appear to be a way to copy or cut the number out of the
> > message box. How do I get the total number out of the message box
> > and pasted into Excel? Or how do I get the total count some other
> > way in project so I can paste it into Excel? A sample of my VBA code
> > is below.
> >
> > Sub Total_Completed_Number_of_Tasks()
> > Dim T As Task
> > Dim C As Long
> >
> > For Each T In ActiveProject.Tasks
> > If Not (T Is Nothing) Then
> > If T.Summary = False Then
> > If T.PercentComplete = 100 Then
> > C = C + 1
> > End If
> > End If
> > End If
> > Next T
> >
> > MsgBox Prompt:="The Project Contains " _
> > & C & " Completed non-Summary tasks"
> >
> > End Sub
>
>
>
>
.
- Follow-Ups:
- References:
- How to capture MsgBox result and paste into Excel
- From: Marty
- Re: How to capture MsgBox result and paste into Excel
- From: Mike Glen
- How to capture MsgBox result and paste into Excel
- Prev by Date: Re: Can a Project Standard file be imported into Project Professio
- Next by Date: Re: How to capture MsgBox result and paste into Excel
- Previous by thread: Re: How to capture MsgBox result and paste into Excel
- Next by thread: Re: How to capture MsgBox result and paste into Excel
- Index(es):
Relevant Pages
|