Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2014, 02:08 PM
morlack morlack is offline Convert image-text hybrids into plain text Windows 7 32bit Convert image-text hybrids into plain text Office 2010 32bit
Novice
Convert image-text hybrids into plain text
 
Join Date: Dec 2014
Posts: 3
morlack is on a distinguished road
Default Convert image-text hybrids into plain text


Sometimes when you copy text from a website and paste it in a cell it appears as some kind of image that allows you to select the text contained on it. The thing is, I have an excel sheet with hundreds of these cells and I need to export the file as a CSV, but the cells containing the image-text hybrids won't convert to CSV properly. Is there something I can do to convert all the images to plain text without having to do it manually one by one?

Thanks in advance!
Reply With Quote
  #2  
Old 12-02-2014, 04:45 PM
macropod's Avatar
macropod macropod is online now Convert image-text hybrids into plain text Windows 7 64bit Convert image-text hybrids into plain text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Without actually seeing the problem worksheet, it can be difficult for anyone to advise on the issue. Can you attach a workbook to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-03-2014, 02:15 PM
morlack morlack is offline Convert image-text hybrids into plain text Windows 7 32bit Convert image-text hybrids into plain text Office 2010 32bit
Novice
Convert image-text hybrids into plain text
 
Join Date: Dec 2014
Posts: 3
morlack is on a distinguished road
Default

Hi macropod, thanks for your prompt response. Here's a workbook example with some of the image-text cells I described.

TIA
Attached Files
File Type: xlsx example.xlsx (71.1 KB, 9 views)
Reply With Quote
  #4  
Old 12-03-2014, 03:01 PM
macropod's Avatar
macropod macropod is online now Convert image-text hybrids into plain text Windows 7 64bit Convert image-text hybrids into plain text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

What your workbook has is a bunch of textboxes containing text. Since those textboxes span multiple cells, it's not clear where you want the contents to go. The following macro extracts the contents to the top-left cell spanned by the textbox, then deletes the textbox.

Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ThisWorkbook.ActiveSheet
  For i = .Shapes.Count To 1 Step -1
    With .Shapes(i)
      If Not .TextFrame Is Nothing Then
        .TopLeftCell.Value = .TextFrame.Characters.Text
        .Delete
      End If
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 12-03-2014, 05:29 PM
morlack morlack is offline Convert image-text hybrids into plain text Windows 7 32bit Convert image-text hybrids into plain text Office 2010 32bit
Novice
Convert image-text hybrids into plain text
 
Join Date: Dec 2014
Posts: 3
morlack is on a distinguished road
Default

Thank you macropod! That macro did exactly what I needed!
Reply With Quote
Reply

Tags
csv, image, text

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert image-text hybrids into plain text Rich text/Plain text Content Controls in Template michael.fisher5 Word 9 11-19-2014 06:36 AM
Convert image-text hybrids into plain text Converting plain text to text box/frame peacespotting Word 1 08-08-2013 10:39 PM
My plain text post got converted to rich text in a reply, how to convert it back? david.karr Outlook 0 01-05-2012 09:46 AM
Getting Plain Text into Excel Columns binar Excel 1 11-05-2010 01:46 PM
Replace All with plain text containing subscript DeaducK Word 0 06-24-2010 08:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:48 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