Empty Rectangle Text to Columns

pebbles789

New Member
Joined
Aug 17, 2011
Messages
2
I have a data sheet where the text is separated with the empty rectangle character and would like to replace it with semicolon to complete a text to columns. First, I used the ctrl+h function, but was not able to copy the character in the Find What field. I also tried pasting the character into the custom text to columns delimiter with no success. Next, I tried recording the VBA code from a successful Find/Replace and modifying the Find What parameter with the character. Running the code replaced all my text with a semicolon.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
Using a front end tool or VB, how do I replace the rectangle character on a worksheet or take the existing characters and use them as the text to columns delimiter? <o:p></o:p>
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
here is one approach in a spare cell try and grab the code as follows

=CODE(mid(a1,4,1) if the [] symbol is at the 4th character, this will reveal the ASCII code of the bogey character

you can then use the result in a SUBSTITUTE function, as follows

=SUBSTITUTE(A1,CHAR(whatevercodefoundabove),";")
 
Upvote 0

Forum statistics

Threads
1,215,510
Messages
6,125,228
Members
449,216
Latest member
biglake87

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