[mso] Macro in Excel to Remove CR/LF
- From: "McDonald, Christine, Ms, DCAA" <Christine.McDonald@xxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Fri, 23 Apr 2004 18:06:44 -0500
I have data in an Excel file that comes in from another system. It puts
returns in the header to wrap the header and single line headers have
two returns before the text so that they are vertically aligned bottom.
When I bring it in, the returns are there, which causes problems when I
sort, because it displays blank information in the sort window, since it
sees the first line, which blank.
I tried to record a macro to remove them, but because I am editing the
cell when I do it, it replaces the text in each cell I run the macro on,
with the text in the cell where I recorded the macro. I tried modifying
the macro after recording, but couldn't figure out how to tell it to
leave the current text, just remove those returns.
Would it be possible to write a macro that would go into each cell and
remove the returns, replace them with a single space and retain the
text?
Thanks,
Christine McDonald
Technical Specialist
Western Regional Office
Remember when life's path is steep to keep your mind even.
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in
the subject line.
Or, visit the group's homepage and use the dropdown menu. This will also allow
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
- Follow-Ups:
- [mso] Re: Macro in Excel to Remove CR/LF
- From: Dave Sharpe
Other related posts:
- » [mso] Macro in Excel to Remove CR/LF
- » [mso] Re: Macro in Excel to Remove CR/LF
- » [mso] Re: Macro in Excel to Remove CR/LF
- [mso] Re: Macro in Excel to Remove CR/LF
- From: Dave Sharpe