Hello,
I'm trying to make some VBA code work which scans a directory full of PPT files and opens them to perform some actions. The problem is that some of the PPT filenames have Japanese characters, so when I use the following code it substitutes '?' for each Japanese character and then cannot open the file.
How can I change this code to allow it to recognize Japanese (or any other special) characters in the file name?
Thanks,
Jeff
I'm trying to make some VBA code work which scans a directory full of PPT files and opens them to perform some actions. The problem is that some of the PPT filenames have Japanese characters, so when I use the following code it substitutes '?' for each Japanese character and then cannot open the file.
Code:
Dim strFolder As String
Dim strFileSpec As String
Dim strFileName As String
Dim opres As Presentation
strFolder = Environ("USERPROFILE") & "\Desktop\Search\"
strFileSpec = "*.PP*"
strFileName = Dir$(strFolder & strFileSpec)
Set opres = Presentations.Open(FileName:=strFolder & strFileName, WithWindow:=False)
How can I change this code to allow it to recognize Japanese (or any other special) characters in the file name?
Thanks,
Jeff