Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to force text to rol to next cell

Guys/Gals:

A portion of a template I've created includes a section for users to
enter free text. This section consists of eight rows. The idea is to
enter text into each row in succession so it has a paragraph-type
style. It works fine when the user hits the tab key before overwriting
the end of the row. When they forget, it cuts off the end of his/her
sentence.

What I'd like to do is write a macro that recognizes when the user is
near or has reached the end of the writable area of a particular row
and automatically tabs to the next row. Maybe this could be done with
some sort of cell width calculation. The code would then repeat itself
until the user reached the end of the eighth row. In a perfect world,
the code would function seamlessly with the user typing through all
eight rows without any extra keystrokes.

Any help would be greatly appreciated.

P.S. I've already tried the text wrap alternative and was not satisfied
with the look or results.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro to force text to rol to next cell

Macros don't run while editing. You would need to put up a userform and
gather the information in a textbox, then put it into your eight rows or
reformat the users information after they completed entry in the worksheet
using the change event perhaps.

--
Regards,
Tom Ogilvy

"d_low" wrote in message
...
Guys/Gals:

A portion of a template I've created includes a section for users to
enter free text. This section consists of eight rows. The idea is to
enter text into each row in succession so it has a paragraph-type
style. It works fine when the user hits the tab key before overwriting
the end of the row. When they forget, it cuts off the end of his/her
sentence.

What I'd like to do is write a macro that recognizes when the user is
near or has reached the end of the writable area of a particular row
and automatically tabs to the next row. Maybe this could be done with
some sort of cell width calculation. The code would then repeat itself
until the user reached the end of the eighth row. In a perfect world,
the code would function seamlessly with the user typing through all
eight rows without any extra keystrokes.

Any help would be greatly appreciated.

P.S. I've already tried the text wrap alternative and was not satisfied
with the look or results.


---
Message posted from http://www.ExcelForum.com/



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
excel save as csv - force text qualifier on every text field Newbie-Don Excel Discussion (Misc queries) 6 April 2nd 23 08:33 PM
Force Macro BNT1 via OfficeKB.com Excel Discussion (Misc queries) 0 June 18th 09 11:01 AM
How to force a wrap text function when the cell is big enough to p Jason Bathon Excel Discussion (Misc queries) 1 April 13th 05 03:21 PM
How can I force certain text formatting in a cell? eddied Excel Discussion (Misc queries) 2 February 7th 05 12:55 PM
force text in a cell based on value of cell in a range jjst34 Excel Programming 7 December 2nd 03 10:23 PM


All times are GMT +1. The time now is 09:13 AM.

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

About Us

"It's about Microsoft Excel"