simple CrLf

phillypdh

Board Regular
Joined
Jun 23, 2011
Messages
66
text is entered in columns a-g after user enters data in col g and hits enter or tab i would like a carriage return line feed ?
excel 2007 vba
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Could you please explain more?
Do you want the user to go to the next row of column A?
or a word wrap?
 
Upvote 0
Some ideas:

1) Inserting a table creates this behavior (you can format the table to look like its just an ordinary range). I'm not really familiar with tables though - not sure of all the ins and outs.

2) Locking all cells to the right of G and protecting the sheet

3) User can select A-G and then key-enter data (this is up the the user though - the cursor stays in the selected area as long as you don't mouse out of it).

4) In code use the Scroll Area: Worksheets("Sheet1").ScrollArea = "A1:G100"
I'm also not real familiar with using a worksheet ScrollArea - so I'm not sure if it has a "native" counterpart in the Excel interface (I couldn't find one just now ... )

ξ
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,515
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top