Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Carriage Returns - Detecting

Is it possible to intercept the ALT-ENTER function?

I need to be able to prevent people from doing ALT-ENTER within cells
as I extract the information into text files for reporting purposes
and as a result the data is formatted incorrect (as it see's each new
entry within a cell as a new line in the text file).

Is it either possible to not allow this, or alternatively to be able
to detect where it's been done and replace with a comma and a space?

That way I could run this macro which corrects the formatting before
the text file is created?

Appreciate your help on this. Many Thanks, Al Mackay (
)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Carriage Returns - Detecting

Hi,

DO a search and replace using Chr(10) as the search string.

Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
Is it possible to intercept the ALT-ENTER function?

I need to be able to prevent people from doing ALT-ENTER

within cells
as I extract the information into text files for

reporting purposes
and as a result the data is formatted incorrect (as it

see's each new
entry within a cell as a new line in the text file).

Is it either possible to not allow this, or alternatively

to be able
to detect where it's been done and replace with a comma

and a space?

That way I could run this macro which corrects the

formatting before
the text file is created?

Appreciate your help on this. Many Thanks, Al Mackay (
)
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i hide carriage returns? TVGuy29 Excel Discussion (Misc queries) 1 May 28th 10 05:55 PM
Carriage returns - how to get rid of them (again) Andrewsan Excel Discussion (Misc queries) 8 March 28th 07 10:15 AM
Formula for Carriage Returns Excel Believer Excel Discussion (Misc queries) 4 December 21st 06 04:37 PM
Delete Carriage Returns Andre Excel Discussion (Misc queries) 2 December 1st 05 09:50 PM
Carriage returns tracyt620 Excel Discussion (Misc queries) 1 July 7th 05 02:52 PM


All times are GMT +1. The time now is 06:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"