#1
|
|||
|
|||
remove tabs from cells
How do I remove all the tab characters in cells? The More button is not in the find & replace box like it is in Word where I can click the More button, then choose the character I want to replace. I tried the Trim function and the Clean function, but they didn't work. What did they do with the More button?
Thanks |
#2
|
|||
|
|||
Firefox is my browser, I highlight your thread title, right click, select... Search Google for "remove tabs fro..."
The first item returned is http://smallbusiness.chron.com/remov...eet-41719.html The second item returned is about the CLEAN function which you indicate having already tried. It says that ascii code values 0 through 31 are removed which should have worked for you as tab is ascii 9 . Are you sure it's tab characters that need dealt with ? Running this macro will display in the Immediate Window, character by character, the ascii codes that Excel sees in the active cell. Code:
Sub CheckOfCharacters() Dim i As Integer, str As String str = ActiveCell.Value For i = 1 To Len(str) Debug.Print Mid(str, i, 1) & " = " & Asc(Mid(str, i, 1)) Next End Sub |
#3
|
||||
|
||||
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
Nosparks thanks, but that macro doesn't do anything when I click on it. Pecoflyer thanks...those functions look like they will fix my problem.
|
#5
|
|||
|
|||
do this:
select a single cell on a sheet that you're wanting the said tab eliminated from hit the Alt and F11 keys at the same time ~> this opens the Visual Basic Environment on the menu line click Insert from the drop down click Module copy and paste the code from #2 into this new Module hit the Ctrl and g keys at the same time ~> this opens the Immediate Window place your cursor anywhere in the sub you pasted into the module hit the F5 key does anything appear in the Immediate Window ? |
#6
|
|||
|
|||
Nosparks thanks, I will have to wait until I get another spreadsheet with that problem. I tested that sub on another spreadsheet using the way you explained in the previous post, and it showed all the ascii characters in the immediate window like you said, but the data was clean.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove spaces from Cells which are at the end of value? | LearnerExcel | Excel | 2 | 12-19-2016 01:10 PM |
Remove borders from cells | otuatail | Excel | 1 | 08-12-2016 05:25 AM |
Default Auto fill cells on one Tab from other Tabs | rs456a@att.com | Excel Programming | 15 | 06-06-2015 09:48 AM |
Word 2010 Cross reference - remove tabs | kennethc | Word | 6 | 01-14-2015 08:54 AM |
Unwanted tabs in table cells | deltaskye | Word | 5 | 01-27-2012 11:58 AM |