Enabling "Beta: User unicode UTF-8" corrupts file and removes saved vba

SunValley

New Member
Joined
Jul 12, 2023
Messages
45
Office Version
  1. 365
Platform
  1. Windows
I was trying to rename a file with VBA, but when I put the "/" character in the name, things don't work. Then I read that I should enable "Beta: User unicode UTF-8" so that it could support the character. However, when enabling and restarting the computer, Excel says it has corrupted the file, the worksheet is saved but all VBA codes are removed. I have a backup of the file but every time I try to open it I am asked to recover and then the VBA is removed.

1691782866057.png

1691782706856.png

1691782608684.png
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Can I ask why you want to put such a character in a filename? There are a whole bunch of characters that should not be used in filenames ... so why attempt to do that kind of thing?
 
Upvote 0
Can I ask why you want to put such a character in a filename? There are a whole bunch of characters that should not be used in filenames ... so why attempt to do that kind of thing?
I sometimes use "/" to shorten names by missing some words.
When you say that some characters should not be used for filenames, do you mean only for VBA Excel, or may Windows have problems with these characters?
 
Upvote 0
I sometimes use "/" to shorten names by missing some words.
When you say that some characters should not be used for filenames, do you mean only for VBA Excel, or may Windows have problems with these characters?
Yes, Windows will have problems. Use underscore instead of "/".
 
Upvote 0
Solution

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top