+ Reply to Thread
Results 1 to 2 of 2

Formatting Textbox

  1. #1
    MarkVan
    Guest

    Formatting Textbox

    I have a listbox and a few text boxes. When I click on the listbox it fills
    in the appropriate fields in the text boxes. I am trying to format the
    textbox. One of the fields is a phone number and the other is a date.

    I have tried this

    format(txtPhone.text, '999-999-9999')
    txtDateofBirth.txt

    Nothing works. Please advise if this is possible using VBA




  2. #2
    Vasant Nanavati
    Guest

    Re: Formatting Textbox

    Something like:

    txtPhone.Text = Format(txtPhone.Text, "000-000-0000")
    txtDateofBirth.Text = Format(txtDateofBirth.Text,"m/d/yyyy")

    --

    Vasant



    "MarkVan" <dthmtlgod@yahoo.com> wrote in message
    news:%23tyHTKeSFHA.1404@TK2MSFTNGP09.phx.gbl...
    > I have a listbox and a few text boxes. When I click on the listbox it

    fills
    > in the appropriate fields in the text boxes. I am trying to format the
    > textbox. One of the fields is a phone number and the other is a date.
    >
    > I have tried this
    >
    > format(txtPhone.text, '999-999-9999')
    > txtDateofBirth.txt
    >
    > Nothing works. Please advise if this is possible using VBA
    >
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1