Command Button Text from textbox RRS feed

  • Question

  • Good evening

    I have the following code which displays text from a TextBox, which contains a date. I would the command button text to just show the date as "mm - yy"

    CommandButton45.Caption = TextBox1

    Can you help?


    Monday, January 14, 2019 6:37 PM


  • All sorted.

    I have looked at it differently. As Textbox1 shows the date Today() I figured that CommandButton45 coud be coded the same with different formatting.

    CommandButton45.Caption = Format(Date, "mmm yyyy")

    • Marked as answer by Stirlingmw Monday, January 14, 2019 7:22 PM
    Monday, January 14, 2019 7:22 PM