PoggiPJ
Active Member
- Joined
- Mar 25, 2008
- Messages
- 330
I have an International application where I need to remove any currency symbol from a User Form field (Me.Inventory.Value) prior to saving the value in a worksheet.
Since I don't know the user's currency symbol in advance, the code needs to check Me.rcfCurrentYearInventory.Value from a string of possible currency symbols and convert to nothing "".
Would something like this work, or is there a better method?
Since I don't know the user's currency symbol in advance, the code needs to check Me.rcfCurrentYearInventory.Value from a string of possible currency symbols and convert to nothing "".
Would something like this work, or is there a better method?
Code:
Me.Inventory.Value = WorksheetFunction.Substitute(Me.Inventory.Value, "$£€¥", "")
Recalc.Range("YTDInventory").Cells(1, 2).Value = Me.Inventory.Value