Aquinax
06-13-2013, 05:02 AM
I've created a macro which replaces signs \|:/*?<> (which cannot be used in file names) with other characters. VBA is to use alt codes for that task and most characters are being replaced ok, yet some characters VBA puts are, as I've noticed, alien to the standard Alt codes table, Thus the character '¿' with the alt code 0191 is being typed by the VBA as ' ї ' and '►' as '+'.
The issue here, as I've figured out, lies in the cyrillic keyboard layout which the VBA for some reasons utilizes for alt codes (^0191, ^0192, ^0193, ^0194 are referenced by " ї, A, Б, В, Г " in the Cyrillic alt code table instead of " ¿, └, Á, Â, Ã " in the Western type). I've had a Russian keyboard layout installed, yet VBA still types the characters incorrectly even after I've removed it, Word itself (I'm using the 2003 version) fetches the correct characters (in compliance with the Western keyboard type).
Can the VBA be somehow 'told' to use the Western type layout ?? How else can it possibly be made to use right alt codes ?
The issue here, as I've figured out, lies in the cyrillic keyboard layout which the VBA for some reasons utilizes for alt codes (^0191, ^0192, ^0193, ^0194 are referenced by " ї, A, Б, В, Г " in the Cyrillic alt code table instead of " ¿, └, Á, Â, Ã " in the Western type). I've had a Russian keyboard layout installed, yet VBA still types the characters incorrectly even after I've removed it, Word itself (I'm using the 2003 version) fetches the correct characters (in compliance with the Western keyboard type).
Can the VBA be somehow 'told' to use the Western type layout ?? How else can it possibly be made to use right alt codes ?