Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2018, 07:05 AM
bulrush bulrush is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Novice
How to remove all tabs from Excel spreadsheet?
 
Join Date: Feb 2018
Posts: 6
bulrush is on a distinguished road
Default How to remove all tabs from Excel spreadsheet?

I have Excel 2010 on Windows 7. I have a huge spreadsheet with 55,000 lines so I'm looking to remove all hidden tabs in each spreadsheet in one step. So the clean() function does not work for me.



I've tried the Search and Replace dialog buy holding ALT and typing 0009 to enter a tab, and replace it with blank, but that doesn't work. I get no error, and the tabs are not removed. I don't even get another dialog asking me to find the next occurrence to replace.

This spreadsheet is from a customer and no, they can't fix it, they just don't know how. And no, we can't upgrade office.

Anyone have any ideas? I can type in VBA and run some code on every cell but I'm not a VBA programmer so I wouldn't know where to start. After we remove the tabs I will export the spreadsheet to a tab-delimited file. Reprogramming the program to use this tab-delimited file would take at least a week due to my busy schedule so that is not an option here.
Reply With Quote
  #2  
Old 02-26-2018, 07:52 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
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

Hi and welcome
can you post a sample sheet with some of the cells concerned? ( click Go Advanced - Manage attachments)

EDIT if you run = CODE(SOMECELL) what does it return? ( somecell is a cell reference)
__________________
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
  #3  
Old 02-26-2018, 08:18 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
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

This addin might help to identify the problem
__________________
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 02-26-2018, 08:40 AM
bulrush bulrush is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Novice
How to remove all tabs from Excel spreadsheet?
 
Join Date: Feb 2018
Posts: 6
bulrush is on a distinguished road
Default

- The Cellview addin is what I already have, and normally works to show hidden characters, but that does not help me delete these characters in one step.
- It will take me a bit to delete thousands of lines to show only the weird lines.
- Doing =code(c35583) gives me 67, and on another cell gives me 70.
- Is there an easy way to specify a range or rows to delete without taking 5 minutes to select them? Or delete all rows not shown via a filter? I'm trying to smallify and sanitize this spreadsheet a bit for privacy.
Reply With Quote
  #5  
Old 02-26-2018, 08:56 AM
bulrush bulrush is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Novice
How to remove all tabs from Excel spreadsheet?
 
Join Date: Feb 2018
Posts: 6
bulrush is on a distinguished road
Default

I've attached a file test1b.xlsx. In col C in normal view you cannot see the embedded tabs. But if you use Cellview, the tabs are at the end of col C. This really messes things up when I export the spreadsheet to a tab-delimited file.

Keep in mind this is a very small test. The real spreadsheet has 55,000 rows.
Attached Files
File Type: xlsx test1b.xlsx (9.5 KB, 8 views)
Reply With Quote
  #6  
Old 02-26-2018, 09:01 AM
ArviLaanemets ArviLaanemets is offline How to remove all tabs from Excel spreadsheet? Windows 8 How to remove all tabs from Excel spreadsheet? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

What you mean by "Tabs"?

ASCII code 70 is for "F" and 67 for "C". What have they common with tab?

Aren't you set Wrap Text on from CellFormat.Alignment tab?
Reply With Quote
  #7  
Old 02-26-2018, 09:22 AM
bulrush bulrush is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? Office 2010 64bit
Novice
How to remove all tabs from Excel spreadsheet?
 
Join Date: Feb 2018
Posts: 6
bulrush is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
What you mean by "Tabs"?
There are hidden tab characters in col C along with other letter characters.

Quote:
ASCII code 70 is for "F" and 67 for "C". What have they common with tab?
Nothing. Someone asked me to run that formula "=code()" on the cell in col C.

Quote:
Aren't you set Wrap Text on from CellFormat.Alignment tab?
I don't understand. Can you rephrase?
Reply With Quote
  #8  
Old 02-26-2018, 10:42 AM
ArviLaanemets ArviLaanemets is offline How to remove all tabs from Excel spreadsheet? Windows 8 How to remove all tabs from Excel spreadsheet? Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

When you select a cell (range), right-click on it, and select 'Format Cells', a Format Cells wizard with several tabs is opened. When you activate the second tab, dubbed as 'Alignment', then there you can check a format option 'Wrap Text', which allows cell entries on different rows (it wraps text automatically to several rows, when it is too wide for cell, and also you can enter a "Hard Return" to force a new row. Maybe there are other options too, but I haven't looked for them. Anyway, this "Hard Return" must have some code in cell too.
Reply With Quote
  #9  
Old 02-26-2018, 11:47 AM
xor xor is offline How to remove all tabs from Excel spreadsheet? Windows 10 How to remove all tabs from Excel spreadsheet? Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Have you tried =CLEAN(C1)?
Reply With Quote
  #10  
Old 02-26-2018, 11:56 AM
NoSparks NoSparks is offline How to remove all tabs from Excel spreadsheet? Windows 7 64bit How to remove all tabs from Excel spreadsheet? 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

I'd select the cells concerned and run a macro
Code:
Sub RemoveTabs()
    Dim rng As Range, cel as Range
Set rng = Selection
    For Each cel In rng
        cel.Value = Replace(cel.Value, Chr(9), "")
    Next cel
End Sub
Reply With Quote
Reply

Tags
excel 2010, tabs

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove tabs from cells ewso Excel 5 12-27-2017 07:39 PM
Word 2010 Cross reference - remove tabs kennethc Word 6 01-14-2015 08:54 AM
Excel - Color Worksheet Tabs avie layne Excel 4 11-12-2012 04:45 PM
New/Custom Tabs in Excel 2010 judicial85 Excel 1 09-27-2011 07:59 AM
How do I use an Excel form to populate and Excel spreadsheet apostht Excel 0 05-21-2006 11:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:56 PM.


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