Excel VBA UserForm TextBox - How to format date

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • Excel VBA UserForm TextBox - Learn how to format date
    The code used in this video:
    Private Sub UserForm_Initialize()
    'txtDate.Text = Format(Now(), "Short Date")
    'txtDate.Text = Format(Now(), "Long Date")
    'txtDate.Text = Format(Now(), "mm/dd/yyyy")
    'txtDate.Text = Format(Now(), "dd mmm, yyyy")
    txtDate.Text = Format(Now(), "mmmm")
    End Sub

ความคิดเห็น • 30

  • @yadwendraray9522
    @yadwendraray9522 5 ปีที่แล้ว +3

    Great, you are teaching very deeply with all suitable examples. Thank you 😄

  • @querrythis
    @querrythis 2 ปีที่แล้ว

    Well presented. Simple and effective. Thank you very much for sharing.

  • @offshoreengineerguide5920
    @offshoreengineerguide5920 6 ปีที่แล้ว +1

    Thank you so much. Very straightforward. That's what I exactly need.

  • @jusephwinclic165
    @jusephwinclic165 4 ปีที่แล้ว

    really this is the best solution thank you thank you for helping me i wish you the best and all your dream come true

  • @chulakapitigala5147
    @chulakapitigala5147 4 ปีที่แล้ว

    Thank you for very useful short video

  • @shashnarayansunkari3276
    @shashnarayansunkari3276 ปีที่แล้ว

    thanks for your effort video its helps me🙏👍

  • @JosephArouna
    @JosephArouna 7 ปีที่แล้ว +1

    Thanks for your tutorial. It's very interesting. But what about"hours" and "minutes" ? For example in a start hour and an end hour.

  • @AndersonVargasFR3UD0Z3R
    @AndersonVargasFR3UD0Z3R 7 ปีที่แล้ว

    Excelente, no hablo ingles pero te entendí a la perfección, gracias (Thank you)

  • @Test_yourknowledge
    @Test_yourknowledge 4 ปีที่แล้ว

    THANK YOU SO MUCH MAM

  • @dramannia
    @dramannia 8 ปีที่แล้ว +1

    Thank U so Much!!!!

  • @carlosferreira7747
    @carlosferreira7747 7 ปีที่แล้ว

    Thank you.
    Are you able to show us: How to Format Date on textBox and when is filled up skip to the next textBox?

  • @zada555
    @zada555 5 ปีที่แล้ว

    Thanks a lot, very usefull

  • @ilkerakyuz7322
    @ilkerakyuz7322 4 ปีที่แล้ว

    Thanks for you.....

  • @IGNACIOIC
    @IGNACIOIC 8 ปีที่แล้ว

    THANK YOU VERY MUCH

  • @karima_MK
    @karima_MK 8 ปีที่แล้ว

    Thank you. I would like to modify the date. When I insert it, I need sometime to write a day before or after but no change is alloed. Thanks

  • @kaaa3485
    @kaaa3485 5 ปีที่แล้ว

    I have another question, how to change the color of a cell based on empty or has data? if the cell has data, no color but if the cell is blanck, color the cell. Thanks.

  • @seckinbilgic
    @seckinbilgic 6 ปีที่แล้ว

    Eline sağlık

  • @balasubramaniamgopal8437
    @balasubramaniamgopal8437 8 ปีที่แล้ว

    Hi, this video is too good to get the date and time. But still I need some more changes in my userform. Could you help !!
    I want the present time to displayed on the userfrom on a Click and in this format "Thursday, Jun 16, 2016 15:42 EST "

  •  5 ปีที่แล้ว

    thank !

  • @leslinks
    @leslinks 7 ปีที่แล้ว

    v useful
    thanks :-)

  • @alejomunoz12
    @alejomunoz12 7 ปีที่แล้ว

    Thanks!!!

  • @matconsthoward8074
    @matconsthoward8074 7 ปีที่แล้ว

    thank

  • @JosephArouna
    @JosephArouna 7 ปีที่แล้ว

    Hello ! How can I get dates from worksheet into Userform TextBoxes (not current date) ?

    • @innocentobie5327
      @innocentobie5327 6 ปีที่แล้ว

      if your date is in cell B4 for example, and you want to display it on TextBox1
      TextBox1.Text = Sheet1.Range("B4").Value

  • @wadjets
    @wadjets 9 ปีที่แล้ว +1

    Hi, what if I want the format but writting myself the date in the textbox, so that if
    I type 03312015, it automatically fills Mar/31/2015 inside the textbox

    • @karima_MK
      @karima_MK 8 ปีที่แล้ว

      Did you find your answer ? I am curious about it, I could make a use of this code too.

    • @wadjets
      @wadjets 8 ปีที่แล้ว +1

      K K actually I didn't, I had to create a popup message to advice the required format, didn't dig in to it much since it wasn't a critical matter. I suggest you ask in MrExcel.com they've solved pretty much all of my questions

  • @ignacio4535
    @ignacio4535 5 ปีที่แล้ว

    Hello, how about in another language?

  • @kanwalpandher9715
    @kanwalpandher9715 4 ปีที่แล้ว

    Keeping code blurred has made it of no help.

  • @Jasonnmc
    @Jasonnmc 3 ปีที่แล้ว

    Can u type properly please.