Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2017, 08:22 AM
ewso ewso is offline remove tabs from cells Windows 10 remove tabs from cells Office 2016
Advanced Beginner
remove tabs from cells
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 12-09-2017, 05:38 PM
NoSparks NoSparks is offline remove tabs from cells Windows 7 64bit remove tabs from cells Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

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
Reply With Quote
  #3  
Old 12-10-2017, 03:45 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline remove tabs from cells Windows 7 64bit remove tabs from cells Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Cleaning "dirty" data
__________________
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
Reply With Quote
  #4  
Old 12-20-2017, 10:30 AM
ewso ewso is offline remove tabs from cells Windows 10 remove tabs from cells Office 2016
Advanced Beginner
remove tabs from cells
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 12-20-2017, 11:38 AM
NoSparks NoSparks is offline remove tabs from cells Windows 7 64bit remove tabs from cells Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

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 ?
Reply With Quote
  #6  
Old 12-27-2017, 07:39 PM
ewso ewso is offline remove tabs from cells Windows 10 remove tabs from cells Office 2016
Advanced Beginner
remove tabs from cells
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default

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.
Reply With Quote
Reply



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 tabs from cells 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
remove tabs from cells Unwanted tabs in table cells deltaskye Word 5 01-27-2012 11:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft