VBA Programing Question - Very Basic - One Field Maps to Another Field

I have a MS Project schedule where I created some custom fields.  I have one custom field for the number of items required to complete the task and then another custom field for the remaining "open" items.  I am using those two fields
to make a calculated third column which calculates the "% completed"...I couldn't call it "% complete" since that is one of the built-in fields. 
The problem is then I have to go down through and manually type in the "% complete" values so that they match my calculated "%completed".  It sure would be slick if I had a macro that would automatically make all of the "% complete"
fields match the "% completed" fields. 
Seems simple, but I have zero experience in VBA programming.
Thank you in advance for your help.
Bill

Try:
Sub UpdateCompleteStatus()
Dim Job As Task
    For Each Job In ActiveProject.Tasks
    If Not Job Is Nothing Then
        If Not Job.Summary Then
            If IsNumeric(Job.Number3) Then
                If Job.Number3 >= 0 And Job.Number3 <= 100 Then
                    Job.PercentComplete = Job.Number3
                End If
            End If
        End If
    End If
    Next Job
End Sub
Number 3 being zero is not a problem, but being an error value or <0 or >100 is a problem.
<p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
Gill Project Management</a></p>

Similar Messages

  • FTP question; very basic

    I don't know how to configure FTP File Transfer to start an upload to web.
    Where do i get the information to fill in the fields??
    Please help

    thank you Mike
    I¹ve heard of zenfolio and will revisit them.....I just wish it was easier
    to use Lightroom....one stop shopping is so seductive.
    nancy
    From: MikeLeone <[email protected]>
    Reply-To: <[email protected]>
    Date: Tue, 08 Dec 2009 15:15:44 -0700
    To: Nancy Dinoto <[email protected]>
    Subject: FTP question; very basic
    John Vitollo had this to say:
    Do you have a website and/or do you own your own domain name... such as
    http://forums.adobe.com/people/nancy7147.com? You'll need a website hosting
    company to serve your website to the world.
    Depends on your ISP. I'm a Comcast cable customer; they allow me to have
    a personal website. I could use that space to do it.
    In my case, I have a Flickr pro account. When it expires, I will
    probably move to Zenfolio, as I like their presentation much better. I
    can't use LR slideshows with Flickr or Zenfolio, but that's not a
    deslbreaker for me.

  • Scripting Question - Very Basic

    Hello, I'm using the trial version of InDesign and am wondering if because it's the trial version that I can't load custom scripts from Adobe?  I've downloaded and installed a Custom Calendar script [I can see the extracted files in/on my PC] but the app apparently doesn't see it.  Any help you can offer is greatly appreciated.  Thanks, 

    Thank you so much, you were spot on. 
    From: Peter Spier <[email protected]>
    To: Friar5 <[email protected]>
    Sent: Monday, December 12, 2011 3:18 PM
    Subject: Scripting Question - Very Basic
    Re: Scripting Question - Very Basic created by Peter Spier in InDesign - View the full discussion
    Have you put thew script in a location that InDesign uses for scripts? See How to install scripts in InDesign | InDesignSecrets
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4079869#4079869
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4079869#4079869. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Get the mapping values from one message mapping into another message mappin

    Hi All,
    I created two graphical message mappings. In first message mapping i created one user defined function and set one global container parameter and I need to use this parameter in my second message mapping user defined function. But the global container parameters can be used in different user defined functions in same message mapping. So is there any way to use the values which are set in one message mapping into another message mapping. If yes, please help me how to get?

    Hi Koteswara rao,
      As you said global container parameters from first message mapping are not accessible from second message mapping program.
    i haven't faced situation like this.but, if you have some unmapped field in target message in first message mapping,you can put global variables data in that unmapped field.
    anyway the output of first message mapping would be input for 2nd messages mapping,so you can access global data(unmapped field filled with global data in 1st MM) from 2nd mapping program..
    Cheers,
    Jag

  • Matte/mask question - very basic

    Really dumb question- I have never fully understood the terminology, though I know conceptually what I want to do. I want to create an image matte I believe. An example would be - I have a photograph of a television set. I have made the entire screen (slightly oval) all pure black. I wish to have a layer (video) underneath it snow up, but only through this layer of black, so the image is cropped around the edge of the round-ish screen (it's an old TV). How do I do this? I'm always confused at all the composite modes - matte, mask, add, yada yada.
    I know this is very basic, so I'm looking for some guidance on how to accomplish this so I know the terminology and the basics.
    Thanks

    qft.
    Nothing wrong with that either !
    In the interests of science and bad family entainment (which I know Mike likes to inflict on relatives. Sorry Mike, had to throw that in, still get a laugh when I think about that post) ... there is more than one way to skin the cat
    Mike - if you wanted to use a matte and not a mask then you'll want to composite the image you want to use in the screen part of the tv using that part of the tv.
    You'll want the "black" portion of your screen to be white. Then you'd use on another layer above that white "matte" the image or layer of video you want to appear.
    So you'd have your tv box on one layer- then your white screen on anther layer - then an image/video above using Travel Matte Luma from the composite mode.
    It's quick - but offers less cntrol, imo.
    I like masks - personal preference only, tho'

  • My malwarebyte software program detected Pup on one computer and on another new pc it crashed and Windows cannot repair it.

    I have been having trouble with FF for a long time now. I use other browsers too. But I was surprised about these recent problems. I know other people have been complaining about FF on other forums as well. I used it initially because it was recommended over IE but now it has become a big annoyance. Plus it crashes constantly, why can't this be fixed already? Thanks for any comments.

    why don't you have that information - is the browser already crashing on startup, so you can't copy the crash ids from '''about:crashes'''?
    in this case you could perform the following steps to gather the crash report IDs while firefox isn't running:
    #Press the following shortcut to get a Run window: [Windows] + [R]. This should bring up a window that contains a text field.
    #In that text field, enter %APPDATA% and press Enter. An explorer window should open.
    #From that explorer window, double-click on the ''Mozilla'' folder, then double-click on ''Firefox'' and then on ''Crash reports''. Double-click on ''submitted''.
    #Now, you should see a list of files that contain reports. Go to ''View'' > ''Arrange Icons by'' > ''Modified'' to get the most recent files at the top of the window.
    #Open the most recent 5 files with a text editor and copy the IDs.
    #Paste each ID with '''bp-''' into the reply window on the forums.

  • How can one process "ask" if another process is running?

    Hi there,
    This is a very general question: how can one process "ask" if another process is running?
    In other words, what 2 process share together.
    Thanks for any help.

    This code will print all active Threads.
    Look at at the API docs for further information.
    ThreadGroup tg=Thread.currentThread().getThreadGroup();
            while(tg.getParent() != null)
                tg=tg.getParent();
            tg.list();

  • One very basic question about inheritance

    One very basic question about inheritance.
    Why we need inheritance?
    the benefit of inheritance also achieve by creating instance of base class using it in other class instead of extending the base class.
    Can any one please explain why we are using inheritance instead of creating object of base class????

    SumitThokal wrote:
    One very basic question about inheritance.
    Why we need inheritance?
    the benefit of inheritance also achieve by creating instance of base class using it in other class instead of extending the base class.
    Can any one please explain why we are using inheritance instead of creating object of base class????What did you find out when you looked on Google?
    One example of inheritance comes in the form of a vehicle. Each vehicle has similarities however they differ in their own retrospect. A car is not a bus, a bus is not a truck, and a truck is not a motorbike. If you can define the similarities between these vehicles then you have a class in which you can extend into either of the previous mentioned vehicles. Resulting in a reusable class, dramatically reduces the size of code, creates a single point of definition, increases maintainability, you name it.
    In short there are thousands of benefits from using inheritance, listing the benefits could take a while. A quick Google search should give you a few hundred k if not million links to read.
    Mel

  • Mapping of Business One Field names to SAP R/3 Field Names

    Hi experts,
    We are downgrading from SAP R/3 to SAP Business One. I am having difficulties in mapping the SAP R/3 fields to Business One fields. Hope you could help me by providing the field names in R/3 linked to Business One field names.
    Thank you very much

    Hi,
    I have ever used SAP R/3 and I knew that there is a feature to export data from SAP R/3 to excel.
    I suggest export it first if you want to migrate data from R/3 to SAP B1. The data in the excel file could be used to enter into data transfer workbench (DTW) excel template file. DTW is an addon to import data into SAP B1 database system.
    You could open this folder :
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates
    after full installation of SAP B1 (begin from server tools, server application, application client, SDK, DI API, DTW).
    To know more about the column template definition and location in SAP B1, you could use SDK help center file. This file is only available if you installed the SDK. This helpfile could be used to know the fields name and meaning in all SAP B1 tables
    Rgds,

  • Possibly a very basic question but I have set up a spread sheet in Numbers and have viewed help videos but I can't get it to give me sums for the columns I highlight.  Keeps coming up with the figure zero.  I have version 09 2.3(554). Can anyone help

    Possibly a very basic question but I am going nowhere without a solution.  I have set up a spreadsheet in Numbers but it won't give me sums for chosen columns. I  have viewed the run through videos and used the formula but nothing happens apart from giving a figure of zero or a red arrow.  The sum icon in the bottom left hand section of the window does not highlight or show any total as I understand from the video that you can drag whatever total is here onto the relevent position on your spreadsheet.  I have Numbers 09 version 2.3 (554). Can anyone advise. Thanks.

    Hi Sohojools,
    To sum a column, use a formula such as this one in Cell A6
    Type this in a cell below your data:
    =SUM(A2:A4) or whatever range of cells you want to sum. The easy way is to type:
    =SUM(
    and then drag or shift-click to select the range of cells. Close the formula with a final bracket ")".
    The sum icon in the bottom left hand section of the window does not highlight or show any total
    To see the sum (and other simple statistics) in the bottom left, select a range of cells. That tells Numbers which cells you are refering to.
    The videos are good, but the Numbers'09 User guide, and the Formulas and Functions User Guide are better. Download them from the Help Menu in Numbers.
    Regards,
    Ian.

  • Very basic questions on text/email

    So I'm now convinced - with the 3.0 OS and the 3GS handset, the iPhone finally does all I want it to do and I'll be buying my first one in a couple of weeks.
    Before I do, though, I have a couple of very basic questions:
    1. Does predictive text only work in the SMS app, or does it work in the apps for email, writing notes, etc?
    2. Can you turn the predictive text off? (I find it wildly irritating, because I know far better what words I want to write than a pesky phone does!)
    3. Having email sent to a mobile is a whole new world for me! Do I need to subscribe to MobileMe at £££ per month, or is there another way of having email from my three accounts forwarded to my mobile?
    Hope someone can help!
    Cheers,

    1. Does predictive text only work in the SMS app, or does it work in the apps for email, writing notes, etc?
    It works with Safari, the Mail client, the Notes app, and with the SMS app.
    2. Can you turn the predictive text off? (I find it wildly irritating, because I know far better what words I want to write than a pesky phone does!)
    Yes.
    3. Having email sent to a mobile is a whole new world for me! Do I need to subscribe to MobileMe at £££ per month, or is there another way of having email from my three accounts forwarded to my mobile?
    You can access any IMAP or POP account with the iPhone's Mail client, and access multiple email accounts. I currently access to email accounts with the iPhone's mail client - my MobileMe account, and a business POP account. You can access all 3 of your email accounts with the iPhone's Mail client.

  • A very basic question regarding data block

    Hi All,
    I've a very basic question concerning data blocks in oracle forms 10g.
    I want to make a view only screen (only query allowed, no update, insert or delete).
    I'll have 6-7 fields on the screen but all the fields are not from a single table.
    For e.g, let say we've field names to display on the screen are f1, f2, f3, f4..
    Out of this f1 and f2 will come from table A and f3, f4 will come from table B.
    Now, my question : Is it possible to create a data block using the data block wizard for such situation if we select create data block from table options?
    If no, can you please tell me an approach to do this.
    Regards,
    Navnit

    Hello ,
    First write your query & select datablock property.
    just change the below properties
    Query Data Source Type=From Clause Query
    Query Data Source Name = (Paste query here)
    now you should add the block ITEMs and give their names according to query columns names. shows the column on canvas and run..
    Best Regard
    skyniazi
    Edited by: SKYNIAZI on Mar 29, 2009 1:32 PM

  • Entities not showing Contribution - very basic question

    Hi guys,
    Apologies for this very basic question - I'm very new to Hyperion, with just a weeks training! Anyway I'm building a basic model and have noticed that in the Value dimension my entities are not rolling up to the [Contribution Total]. This means that Entities do not roll up!!
    One suggested issue was that I needed a Sub Consolidate in the Rules, however I've set the attribute "ConsolidationRules" to be = to N. In the documentation this is defined as "N to use the default consolidation and eliminations."
    Wondering is there anything else that is needed to use default consolidations, or do I need to create some Rules??
    Thanks
    G

    Why do you think it is not rolling up? If your Consoldiation Rules are set to 'N' you do not need rules.
    Make sure your accounts are set to IsConsoldiate. Make sure you are viewing a 'Parent.Child' at Contribution Total.

  • Join 2 fields into one to map to destination field

    Hi! Is it possible to join data in 2 fields into one to map to the destination field? I have image file name kept in one field and want to prefix with a URL which I hope to maintain in a manually added field. Alternatively, it will be great to be able to prefix the image filename with the URL to be mapped to the image destination field.
    Any help is very much appreciated.
    Thanks!
    SF

    Hi,
    Yes it is possible to combine values from two fields to map a single field of MDM repository using Import Manager. This feature of Import manager is called as Field Partitioning.
    You can do it by following below mentioned steps:
    1. Open import manager and connect to source file.
    2. Specify source and destination tables. expand Source Table under source Hierarchy in Import Manager. And click on first field to select it.
    3. Now Go to "Partition Field/Value" tab. In the Source Partition sub Pane  you will see your First Field under "partition by" (* because you select first field from source hierarchy).
    4. From source Partition sub pane under "Available Fields" select the second field and click on "Add". This will bring second field also under "partitioned By".
    5. Now select both Fields under "partition by" and right click and select "Combine" (*Combine option will be enabled only when more than 1 field is selected by "partition By"
    6. Once you select Combine, it will combine values from both Fields. Again right click and select "Set combine delimiter" and specify the required value delimiter.
    7. Now Go to "Map Field /Values" tab. You will see one more field (*starting with the name of your first field and ending with partition word. Map this field to the required destination field.
    8. Follow other normal steps for data import and import data. after data import check data in data manager. you will get combined values from 2 source field in the MDM field.
    Check Page no 203 of [import manager reference guide |http://help.sap.com/saphelp_nwmdm71/helpdata/en/4b/72b8e7a42301bae10000000a42189b/MDMImportManager71.pdf]for more details.
    Please revert if you face any issue.
    Regards,
    Shiv
    Edited by: Shiv Prashant Dixit on Mar 11, 2010 9:53 AM

  • Question about stereo vs. mono tracks. (Very basic, but appreciate help)

    I’m still a little confused about Stereo Vs. Mono tracks when recording in Logic. (This might sound stupid, but I’m still getting confused by this stuff.)
    When first recording a track, do you guys usually do it in mono or stereo?
    Secondly, I’m still confused about the benefits or stereo tracks. Why not just record mono and then pan a track left or right when mixing? I’m just not getting the concept of stereo recording. I know these are very basic questions, but I’ve read numerous books and I’m still a little in the dark on this. Thanks for the help!

    Most of the things I record are done on mono tracks. Each piece of a kit goes to its own channel, then I pan things accordingly later (Overhead L & R, etc.).
    You only need to record in stereo if you actually have a source that is stereo, i.e. a keyboard with stereo fx and L&R outputs, but even then I usually just set up two mono tracks, one for L and one for R. I would do a similar thing if I was using a stereo pair to mic something.
    You can always make a mono track stereo later as well using a variety of plug-ins.

Maybe you are looking for

  • 1st Gen Ipod Touch can't see any WiFi networks?

    My friend gave me his old Ipod Touch, and everything worked fine for a while. Recently though, the WiFi just cut out and I can't connect or see anything. When I open up the 'Connect to WiFi' menu, there are no options.. even though I know there is in

  • Time Capsule needs constant reboots

    I have a Time Capsule with a 1TB USB drive attached. I find that it works fine for around 12-18 hours, and then I cannot connect to it over Ethernet or Wifi. Airport Utility hangs when connecting, backups fail (error 22), Finder cannot connect to the

  • Sequence Error During Golden Gate Replication! Need Hints

    Dear All, I am replicating 2 databases one way, from production to standby using golden gate. Both databases are 11gR2 and on Linux. Replication runs smooth for couple of days and then ends up with this error: ERROR OGG-01296 Error mapping from ETISL

  • Manually applied Credit Memo

    I am not sure if this is the correct form for this question, but I will start bey asking it here. I am creating a statement using the SDK/VB.net. I am trying to show Open Invoices with partial payments or Credit memos applied againstthe Invoice. I un

  • My Macbook Pro hits 70°C when browsing

    my macbook pro (early 2010 15" intel i5 processor) regulary gets up to 70°-75° according to iStat when I'm just browsing the internet on chrome. I can't figure out why it gets so hot. I have the brightness on low, nothing running in the background an