I want to create a text file with a filename that has some Cyrillic characters.
This MS Word VBA code does not work since I moved from Windows to Mac:
Dim fname As String
fname = db_path + "кириллица-test123.txt"
Close #1
Open fname For Output As #1
Print #1, "Hello!"
Print #1, "Привет!"
Close #1
I get
Run-time error '75': "Path/File access error".
It works if I say:
frame = db_path + "test.123.txt"
I learned File System Objects are only supported on Windows.
I am on macOS (default language = Russian). I do not know any way to create a text file other than the "Open" statement.
I tried applying StrConv function to the filename.