My US company has a division in the UK and we occasionally like to see how a proposal will look in pounds versus dollars.
This code switches a specific range in accounting format from USD to GBP.
For Each cel In lookRng
If cel.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)" Then
cel.NumberFormat = "_-[$£-en-GB]* #,##0.00_-;-[$£-en-GB]* #,##0.00_-;_-[$£-en-GB]* ""-""??_-;_-@_-"
End If
Next cel
I tried to revert from GBP to USD using the same approach.
For Each cel In lookRng
If cel.NumberFormat = "_-[$£-en-GB]* #,##0.00_-;-[$£-en-GB]* #,##0.00_-;_-[$£-en-GB]* ""-""??_-;_-@_-" Then
cel.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
End If
Next cel
The screen blinks with no change to the formatting.
