microsoft.public.scripting.vbscript - Microsoft Office Project
I'm creating a form which will generate two letters. The first letter needs a date field and the second letter needs a calculated date field of first letter date plus 30 days. I found this: Selection.InsertBefore Format(((Date+30), "MMMM d yyy") This only worked the first time we tested, the 30 day date never updated. Thanks.
I want to work out the difference (number of days) between 2 dates selected using the date picker in vb.net and displaying this in textbox1 (which will be un-editable to the user) An MVP game me the following code, which looks acceptable to me in practice, but appears to always through up 0 in textbox1??? Am I doing anything blatantly wrong or is there anything else I need to do??? Dim d1, d2 As Date Me.txtlength.Text = CStr(d2.Subtract(d1).Days) Is this code correct or do I need something else? Scott