Results 1 to 2 of 2
2002-11-14, 03:46 #1
- Join Date
- Jan 2001
- Baltimore, MD, Maryland, USA
- Thanked 0 Times in 0 Posts
Format data copy from Web Site (Office XP Windows XP)
I have a problem getting EXCEL to recognize that what look to be numbers as numbers. The istext function returns "TRUE" but the VALUE function will not convert the cell values to a number format. I tried multiplying by 1 using the copy, paste special, Multiply trick to no avail. I have run out of gas on this. Anyone with an answer, please jump in.
Stephen <img src=/S/confused.gif border=0 alt=confused width=15 height=20>
2002-11-14, 04:54 #2
- Join Date
- May 2002
- Canberra, Australian Capital Territory, Australia
- Thanked 406 Times in 335 Posts
Re: Format data copy from Web Site (Office XP Windows XP)
Give the following two macros a go:
Dim Cell As Range
Selection.Replace What:=Chr(160), Replacement:=Chr(32) 'Replace non-breaking space with std space.
For Each Cell In Selection.SpecialCells(xlConstants)
Cell.Value = Application.Trim(Cell.Value) ' Delete "Application." on this line to maintain any internal double-spacing.
Dim CellContent As Variant, NewData As Variant
For Each CellContent In Selection
If CellContent.HasFormula = False ThenCheers,
[MS MVP - Word]