Hi all - please could someone let me know where I'm going wrong as its driving me mad trying to figure it out.
So I have a userform and the user enters the Total Sale Amount and once exiting the textbox the figure is formatted as a currency which is what I need it to do and it works fine.
When the user has completed the rest of the boxes on the form and clicks the save button the data is written to the worksheet - again this works fine BUT the worksheet is not recognising the Total Sale amount as a currency (although it does show the '£' symbol). Subsequently the overall Total Sales amounts are not summing on the worksheet.
Does anyone have any idea what I'm missing or doing wrong here?
Many thanks
Paul
So I have a userform and the user enters the Total Sale Amount and once exiting the textbox the figure is formatted as a currency which is what I need it to do and it works fine.
VBA Code:
textboxTotalSaleAmount.Value = Format(textboxTotalSaleAmount.Value, "£0.00")
When the user has completed the rest of the boxes on the form and clicks the save button the data is written to the worksheet - again this works fine BUT the worksheet is not recognising the Total Sale amount as a currency (although it does show the '£' symbol). Subsequently the overall Total Sales amounts are not summing on the worksheet.
Does anyone have any idea what I'm missing or doing wrong here?
Many thanks
Paul