URGENT- REPLACE TEXT IN A TEXTBOX
Posted by Randy Parris on November 07, 2001 9:00 AM
Hope I can get some help as soon as possible.
I have a 2 textboxes sitting on a lable to make up a premium textbox1 is for dollars and textbox2 is cents. I have 0.00 in the textbox, so that when the userform is used dollars and cents would be entered. My problem is when I run the userform I am able to change textbox1 but when I get to textbox2 the cursor skips to the back of the 00. Can anyone help with any additional code so that after the dollars are punched the two zeros would be highlighted so that cents can be punched. Check out the code. Thanks a lot.
private sub premium1_Keydown(ByVal keycode as msforms.returninteger, byval shift as integer)
if keycode = 110 then
keycode = 0