Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
When I import a table from another program into Excel, the blank cells in the
original program look blank, but Excel imports them as text. I need help writing a macro that will identify the cells that contain text and delete their contents. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Enter:
Sub textclear() ' gsnu Dim r As Range For Each r In Selection If r.Application.IsNumber(r.Value) Then Else r.Value = "" End If Next End Sub Select an area of the worksheet and run the macro. -- Gary's Student "GVT" wrote: When I import a table from another program into Excel, the blank cells in the original program look blank, but Excel imports them as text. I need help writing a macro that will identify the cells that contain text and delete their contents. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use Dave McRitchies Trimall macro, and it will do a lot more besides:-
http://www.mvps.org/dmcritchie/excel/join.htm#trimall -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ------------------------------*------------------------------*---------------- It's easier to beg forgiveness than ask permission :-) ------------------------------*------------------------------*---------------- "GVT" wrote in message ... When I import a table from another program into Excel, the blank cells in the original program look blank, but Excel imports them as text. I need help writing a macro that will identify the cells that contain text and delete their contents. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop excel from dropping the 0 in the beginning of a number? | Setting up and Configuration of Excel | |||
Macro to Delete blank cells | Excel Worksheet Functions | |||
How to I copy text from a range of cells to another single cell? | Excel Discussion (Misc queries) | |||
I want Excel to allow cells with formulas and unrelated text | Excel Discussion (Misc queries) | |||
How do you delete one cell from a range of protected cells | Excel Worksheet Functions |