Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AimzG8Rfan
 
Posts: n/a
Default Need to insert row with enter key

My boss is not very computer literate and in order for him to use the
spreadsheet I created for tracking jobs, he "must" be able to insert a row by
hitting the enter key. Basically, he wants to just type on a line, hit
enter, and be on the next line to type something -- like Word does. Any
ideas??
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

piece of cake. Just put it in a worksheet_change event. Right click sheet
tabview codeinsert thismodify to suitSAVE . Now when you change
something in col A a row will be inserted moving that data down one leaving
you the same row on which to type again.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 2 Or Target.Column < 1 Then Exit Sub
Rows(Target.Row).Insert

End Sub
--
Don Guillett
SalesAid Software

"AimzG8Rfan" wrote in message
...
My boss is not very computer literate and in order for him to use the
spreadsheet I created for tracking jobs, he "must" be able to insert a row

by
hitting the enter key. Basically, he wants to just type on a line, hit
enter, and be on the next line to type something -- like Word does. Any
ideas??



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you mean a new line in the same cell tell him to use Alt + Enter otherwise
enter should go to the cell under is it is selected under toolsoptionsedit
and move selection after enter down

Regards,

Peo Sjoblom

"AimzG8Rfan" wrote:

My boss is not very computer literate and in order for him to use the
spreadsheet I created for tracking jobs, he "must" be able to insert a row by
hitting the enter key. Basically, he wants to just type on a line, hit
enter, and be on the next line to type something -- like Word does. Any
ideas??

  #4   Report Post  
AimzG8Rfan
 
Posts: n/a
Default

I'm not a VBS coder but understand inserting your code. Could you tell me
what exactly I need to modify in that code to make it work with mine?

"Don Guillett" wrote:

piece of cake. Just put it in a worksheet_change event. Right click sheet
tabview codeinsert thismodify to suitSAVE . Now when you change
something in col A a row will be inserted moving that data down one leaving
you the same row on which to type again.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 2 Or Target.Column < 1 Then Exit Sub
Rows(Target.Row).Insert

End Sub
--
Don Guillett
SalesAid Software

"AimzG8Rfan" wrote in message
...
My boss is not very computer literate and in order for him to use the
spreadsheet I created for tracking jobs, he "must" be able to insert a row

by
hitting the enter key. Basically, he wants to just type on a line, hit
enter, and be on the next line to type something -- like Word does. Any
ideas??




  #8   Report Post  
Don Guillett
 
Posts: n/a
Default

I just re-tested in xl2002 with the code in a worksheet module (not a
regular module and not ThisWorkbook). When I enter anything in col A a row
is inserted.......

--
Don Guillett
SalesAid Software

"AimzG8Rfan" wrote in message
...
I take it back, it's not working correctly. Pressing enter causes it to
instert over 200 rows instead of just one. I pasted your formula exactly

as
you wrote it. Can you help?

"AimzG8Rfan" wrote:

Didn't work for me yesterday so thought I missed something. Working

today
though! Thanks for your help.

"Don Guillett" wrote:

I thought it was pretty self-explanatory. Read it again and try it....

--
Don Guillett
SalesAid Software

"AimzG8Rfan" wrote in message
...
I'm not a VBS coder but understand inserting your code. Could you

tell me
what exactly I need to modify in that code to make it work with

mine?

"Don Guillett" wrote:

piece of cake. Just put it in a worksheet_change event. Right

click
sheet
tabview codeinsert thismodify to suitSAVE . Now when you

change
something in col A a row will be inserted moving that data down

one
leaving
you the same row on which to type again.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 2 Or Target.Column < 1 Then Exit Sub
Rows(Target.Row).Insert

End Sub
--
Don Guillett
SalesAid Software

"AimzG8Rfan" wrote in

message
...
My boss is not very computer literate and in order for him to

use the
spreadsheet I created for tracking jobs, he "must" be able to

insert a
row
by
hitting the enter key. Basically, he wants to just type on a

line,
hit
enter, and be on the next line to type something -- like Word

does.
Any
ideas??








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
Can you change something in Excel to automatically insert an equa. Jeff Excel Discussion (Misc queries) 1 March 10th 05 02:55 PM
insert picture BillGwyer Excel Discussion (Misc queries) 1 March 4th 05 06:37 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM
Function to automatically insert a new sheet as a result of data entry? Mark Mulik Excel Worksheet Functions 2 November 28th 04 02:21 AM
how to insert row automatically after hitting enter at the end of. Ali Excel Worksheet Functions 1 November 11th 04 07:24 AM


All times are GMT +1. The time now is 07:23 AM.

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"