Textbox datwe auto update

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
1,231
Office Version
  1. 2010
Platform
  1. Windows
Hi good morning, I have the code below which is in my textbox, but it doesn't auto update,can you help me please?
Code:
Private Sub TextBox10_GotFocus()
If Me.TextBox10.Value = "" Then
   Me.TextBox10.Value = Format(Date, "dd/mm/yyyy")
 End If

End Sub
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I tried that :( thank you for the link, I don't suppose I could send you the file?
 
Upvote 0
So you are not able to get this to work?
You know how to get into the VP Editor right? if not by pressing ALT+F11
Then you doppel click the worksheet on the left hand side where you like your code to run "Sheet1" or what ever..
Then you look at my post my link scrol down and at the first picture you see there is exactly what you neet to do.!
 
Upvote 0

Forum statistics

Threads
1,215,988
Messages
6,128,144
Members
449,426
Latest member
revK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top