I have a userform that reads data from several worksheets (in the same workbook as the userform). Those values represent dollar amounts and are formatted in the sheet with two decimals. I want to display them as the default entry in an input box so one can see what's already stored as the cost for that item
I've tried several variations, as follows ('"EntryItemAmt" is both the worksheet range name and the VBA variable that's read as the input box default):
EntryItemAmt = Worksheets("Formulas").Range(Format("EntryItemAmt", "0.00"))
EntryItemAmt = Worksheets("Formulas").Format(Range("EntryItemAmt", "0.00"))
EntryItemAmt = Worksheets("Formulas").Range("EntryItemAmt", "0.00").NumberFormat = "0.00"
and none of them work. If the value in the worksheet is, say, 4.16, it displays in the inputbox as "4", and if it's 4.73 in the worksheet, it displays as "5".
Is there a way to have the values show as the input box default as 4.16 and 4.73 instead of 4 or 5?
I've tried several variations, as follows ('"EntryItemAmt" is both the worksheet range name and the VBA variable that's read as the input box default):
EntryItemAmt = Worksheets("Formulas").Range(Format("EntryItemAmt", "0.00"))
EntryItemAmt = Worksheets("Formulas").Format(Range("EntryItemAmt", "0.00"))
EntryItemAmt = Worksheets("Formulas").Range("EntryItemAmt", "0.00").NumberFormat = "0.00"
and none of them work. If the value in the worksheet is, say, 4.16, it displays in the inputbox as "4", and if it's 4.73 in the worksheet, it displays as "5".
Is there a way to have the values show as the input box default as 4.16 and 4.73 instead of 4 or 5?