If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > how do i get rid of 2lines in each cell?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-04, 15:24
inho78 inho78 is offline
Registered User
 
Join Date: Sep 2004
Posts: 113
how do i get rid of 2lines in each cell?

hey guys. I recently did a data export from my access database. How do i get rid of 2 line returns in each cell so it's all on one line. It looks like there is a tab in a stream of text such as address. here are some examples;

"350 S. Grand Ave.
43rd Floor"


"8301 Florence Ave.
#318"


how do i get those like this "350 S. Grand Ave. 43rd Floor"
"8301 Florence Ave. #318".

Theres about 700 and it's way too time consuming to go to each one and press back space. What is the most efficient way to hadle this?? Thanks guys
Reply With Quote
  #2 (permalink)  
Old 10-21-04, 03:16
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Open the code window and put something like this in

[code]
Sub Test()
Selection.Replace Chr(10), ""
End Sub
[\code]

Then Highlight your area and run the Macro
HTH
Dave
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On