adding customized text to excel "date time picker" control - excel

I have an Excel sheet with the 'Microsoft date time picker control'.
The content in the control, by default, when the sheet initializes is the current date.
I wish to display some text in the control when the control is first initialized...something like "Please select a date".
Can this be done? If yes, how? Do we use a macro? Can we modify a property through code?

No, it's not possible (and not advisable). The Value property is of type date-time.

Related

When my toggle is selected as yes I want a default value to be inputted into my dropdown box below, how do I do that?

Here is an image of it. I want the default value to be Open when the toggle is selected as yes.
Change the Default setting for the dropdown control to a formula along these lines:
If(MyToggle.Value=true,"Three","One")
If the control is a Combobox, which is what's used for a SharePoint Choice column, then the items are records, not just a list of text. For a combo box you need to change the property for "DefaultSelectedItems" and set it to something like this:
If(MyToggle.Value,{Value:"Three"},Parent.Default)
Make sure that the value you are using is a valid one according to the SharePoint choice column definition.

Display date based on condition of check box

I am working within Infopath and I am trying display a today() or a now() in a field if a checkbox in the form is selected (ie auto populate a date if a checkbox is selected).
I tried making a rule "if checkbox is not blank, action, set field's value, today()
but it doesnt work.
I was thinking of placing a IF statement
(TrueResult | ElseResult) [(BoolCondition) + 1] but I have no idea how I would format that.
Thanks for your help/suggestions.
R
Check the steps below.
1.Create a Infopath form.
2.Add Check Box control and a Text Box control into this form.
3.Click the Check Box, add rule->select "Is Checked"->"Set a Field's Value".
4.Set a field's value with today() method.

Excel as database, search from textbox and show info to specific textbox accordingly VB.NET

I work with one of my project where I have list of d:\Project\customer.xls. In the list there is No, Name, Sex, Telephone, Date of Birth, ID Card, IA Code. Therefore, I design a search button by type in "Phone Number" and with success search it will show Name, DoB, ID card and IA code on the text box accordingly.
is it possible to directly take value from the cell in excel and show it in textbox without using datatable?
if it is not possible, and i must use datatable to import excel to it first, can i hide it from view as if it is non exist?
This link help me with import from excel to datatable but from here ... how can i get specific data to show in textbox accordingly?
Using VBA (not VB.Net) you can set the <TextBoxName>.Text = ThisWorkbook.<Sheet>.Range(<TheCellAddress>)
You can use .Text or .Value as you see fit on both the textbox and the range. In addition, you can also use .Range(...).Value, but this is the default response anyway if you don't use a Set <variable>= ... type statement.
If you are using VB.Net through the interop assemblies, you can do the same thing. The VB.Net language has some more efficient and cleaner ways to manipulate strings.

Is there a way to use the "Properties" Window also for cells in Excel?

I am curious whether I can get a properties window for cells select in Excel. With "properties window" I mean the same on the Developer interface uses for properties of entities in VBA. I use AutoCAD a lot and have gotten used to being able to see and edit all attributes of an entity through the properties window. It would be quite handy if I had all info of a cell available in Excel too.
The content is displayed in the Formula Bar. The formatting can be displayed by touching: Ctrl+1:
This is not a complete set of Properties. (Comments are displayed by mouseover,etc.)

How to get the completion time of a task in Outlook

I've written a VBA macro that exports in excel all completed (ticked) mails from a mailbox based upon the TaskCompletedDate property. However TaskCompletedDate shows only the date portion of the DateTime value. Is there a way to getthe time value as well?
I'm using Outlook 2010.
Documentation reads that it returns Date type, so you can't get exact time I'm affraid, unless you save it on your own in the first place.
yes you can get the time as well. For this first go to your outlook express mailbox. Then right click on the column header and select "View Settings". Now in the pop-up window click "Format Columns". Now select the "Flag Completed Date" column on the left hand side and then from the format drop down select the 1st, 2nd or 3rd option. Click ok and come out of settings.
Now whenever you extract the info from the taskcompleteddate property you will get the time as well.
I am too late to answer... i have joined recently. But I hope this will help someone else who might be looking for it.
Regards,
Premanshu
You cannot do that - Outlook only stores the date (in the UTC time zone). You can see the data on the MAPI level in OutlookSpy (I am its author - select the task, click IMessage button).

Resources