Thread: Paste numbers
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Sally Mae Sally Mae is offline
external usenet poster
 
Posts: 16
Default Paste numbers

Thanks Norman! I have sent you en e-mail with my spreadsheet attached to it.
Please if you can take a look at it. I am getting desperate, no one seems to
know what it is and I am confident that it is a very simple solution to this
problem that has been keeping me busing for twom workdays (i am not a
programmer....). Thank you ver much!

"Norman Jones" skrev:

Hi Sally,

Thanks Norman but the code just does not work ... and it does
not remove the blanks


It works for me, but perhaps I do not understand your data.

Also it takes a very long time


There are ways to increase speed, but these would be pointless if the macro
does not funtion!

. I think it is better to use the
code that I got from recording the macro. The code is:


Private Sub findAndRemoveBlanks()
Cells.Select
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub


Your original request was to remove blanks from non-alpha cells.

How will your suggested code differentiate types of cell content.

If you wish, you may send me a sample of the data to be converted:

norman_jones@NOSPAMbtconnectDOTcom

(Delete "NOSPAM" and replace "DOT" with a full stop [period] )



---
Regards,
Norman