I have a userform with a lot of designed and weird code behind it so it can 'look' correctly. Therefore I can't really mess up with that code. However, when I finish the user-form and the data exports to a table I have some problems.
The error "number in the cell is formatted as text" came up. I managed to fix it for textbox which included percentages by adding .Value add the end. When I tried the same for textboxes including number it went all wrong. When I wrote 500.000 in the user-form it returned 500. I fixed that by adding * 1 at the end. Now my only remaining problem is getting "500.000" instead of "500000" eg. the thousand seperators.
.Cells(lngRow, 7) = txtNum1.Value * 1 = Format("#,##0")
.Cells(lngRow, 13) = txtNum2.Value * 1 = Format(Val(txtNum1.Text), "#,##0")
I've tried both of these, which return "FALSE", anyone know what I need to do?
The error "number in the cell is formatted as text" came up. I managed to fix it for textbox which included percentages by adding .Value add the end. When I tried the same for textboxes including number it went all wrong. When I wrote 500.000 in the user-form it returned 500. I fixed that by adding * 1 at the end. Now my only remaining problem is getting "500.000" instead of "500000" eg. the thousand seperators.
.Cells(lngRow, 7) = txtNum1.Value * 1 = Format("#,##0")
.Cells(lngRow, 13) = txtNum2.Value * 1 = Format(Val(txtNum1.Text), "#,##0")
I've tried both of these, which return "FALSE", anyone know what I need to do?