Consulting

Results 1 to 3 of 3

Thread: Romanian diactritics "ș", "Ș", "ț","Ț"

  1. #1

    Romanian diactritics "ș", "Ș", "ț","Ț"

    Does anyone have an idea about how can I save a txt file with following names using a macro in Word 2010:

    123ț.txt
    121ș.txt


    etc
    I need to get the characters Ț, ș using code


    The macro I have is like this:


    Sub DIA()

    Dim fso As Object
    Set fso = CreateObject("Scripting.FileSystemObject")

    Dim Fileout As Object
    Set Fileout = fso.CreateTextFile("D:\MIHAI\DOSARE\BAAR\" & ChrW$(141), True, True)
    Fileout.Write "your string goes here"
    Fileout.Close

    End Sub


    Any ideas ?
    Thanks.

  2. #2
    ț = ChrW(539)
    Ț = ChrW(538)
    ș = ChrW(537)
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •