Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: formatting dates and times in visual basic

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    West Virginia
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am a real rookie with VB but moving along pretty well. I am building a form and I want to create a drop down box where users can select a date from a calendar. Every time I try to build some sort of cell range it returns the decimal in the VB box. Thanks in advance for your help.

  2. #2
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-04 18:58, station manager wrote:
    I am a real rookie with VB but moving along pretty well. I am building a form and I want to create a drop down box where users can select a date from a calendar. Every time I try to build some sort of cell range it returns the decimal in the VB box. Thanks in advance for your help.
    Try

    TextBox1.Text = Format(Range("A1"), "mm/dd/yy")

    Lookup Format while in the VBA Editor

    Kind Regards,
    Ivan F Moala From the City of Sails

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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