Need Help on Number format on textbox in userform exel

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I need your help on number formatting in excel vba userform.

I am using a userform to retrieve data from my excel sheet to my userform.

My userform consists of multiple textboxes. i want to format these textboxes as number and the appearance of the data in the texbox would be in the following format, "0,00,00,000.00"

On my excel sheet the data format is exactly the same which i have mentioned above, but when i run the macro to retrieve the data on my userform it shows as "00000000".

Please help me on this.

Thank you so much in advance.

Regards

Shib
 
If the textbox gets its value from a worksheet cell, the cell's Text property will give a string representation of the cell's value according to its number format:

Code:
UserForm1.TextBox1.Value = Sheet1.Range("A1").Text
 
Upvote 0

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