UserForm Controls -revisited

Gastank

New Member
Joined
Feb 17, 2002
Messages
34
If I invoke the Excel data form on a workheet range, the controls (fields) on the form correctly mirror any formatting on the database range i.e. number format, date format ("dd/mm/yy") etc.,
However if I try to create a custom UserForm the Textbox controls I add to the form are just that "Textboxes"! How can I capture the
contents of the related fields and format them to dates etc. so that they are displayed on the form and written to the worksheet in the desired format?
Any help would be greatly appreciated.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
If your date is in say A1, then you could try something like-

TextBox1.Text = Format(Cells(1,1), "dd/mm/yyyy")

Try looking up the format function in the Help files for other formats.
This message was edited by Mudface on 2002-02-21 11:26
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,291
Members
448,564
Latest member
ED38

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