Hi,
I've encountered something, i have a userform with a text box and on every computer on my network it allows for Currency variable to take on the value placed into a text box.
Public recSaleCheck As Currency
Public machineCheck As Currency
Now on 1 computer on excel 2013, for whatever reason it will not allow the following code (below) to execute i get a 'type mismatch':
I have no idea why it is doing this, i tested it on 30+ computers and it works. From office 2010 to 365 premium, but this one computer it gives me type mismatch. The only thing i got to work is by converting to a string?
Any ideas.. Thanks
I've encountered something, i have a userform with a text box and on every computer on my network it allows for Currency variable to take on the value placed into a text box.
Public recSaleCheck As Currency
Public machineCheck As Currency
Code:
'Puts the value of where the row and column intersect into the AgentCostBox, base price.Me.AgentCostBox.Value = ws.Cells(baseRow, basecol).Value
Me.AgentRecSalePrice.Value = ws.Cells(baseRow, baseSellCol).Value
Me.AgentCostBox.Value = Format(AgentCostBox, "£#,##0.00")
Me.AgentRecSalePrice.Value = Format(AgentRecSalePrice, "£#,##0.00")
Now on 1 computer on excel 2013, for whatever reason it will not allow the following code (below) to execute i get a 'type mismatch':
Code:
machineCheck = Me.AgentCostBox.Value
recSaleCheck = Me.AgentRecSalePrice.Value
I have no idea why it is doing this, i tested it on 30+ computers and it works. From office 2010 to 365 premium, but this one computer it gives me type mismatch. The only thing i got to work is by converting to a string?
Any ideas.. Thanks