Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 331
Default Auto Insert NEw Row with formatting

I have an employee job list. I have Col. "B" as Employee Names. When I
click onto the cell (i.e. "B1") a drop down list appears with all the
employees names to pick from. This list is from the Master Employee Record
workbook. When I pick on a name it will automatically fill in all the cells
with formulas across the board and cells are linked to the cells that I type
in the hrs. This way all required taxes are atuomatically figured out. So
the question is this....As soon as I click the name from the drop down list I
want an "Entirely New Row Inserted" across the board directly under the name
I just picked.

Thank in advance

Greg

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Auto Insert NEw Row with formatting

Right click sheet tabview codeinsert this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 9 Or Target.Column < 2 Then Exit Sub
Rows(Target.Row + 1).insert
Application.EnableEvents = False
myname = Target
Rows(Target.Row - 1).Copy Rows(Target.Row)
Target = myname
Application.EnableEvents = True
Cells(Target.Row, "f").Resize(, 12).ClearContents
Application.CutCopyMode = False
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Greg" wrote in message
...
I have an employee job list. I have Col. "B" as Employee Names. When I
click onto the cell (i.e. "B1") a drop down list appears with all the
employees names to pick from. This list is from the Master Employee
Record
workbook. When I pick on a name it will automatically fill in all the
cells
with formulas across the board and cells are linked to the cells that I
type
in the hrs. This way all required taxes are atuomatically figured out.
So
the question is this....As soon as I click the name from the drop down
list I
want an "Entirely New Row Inserted" across the board directly under the
name
I just picked.

Thank in advance

Greg


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
Is there any way to auto-insert a row? Shawn Excel Worksheet Functions 4 December 3rd 08 07:04 PM
Need VBA script to auto-insert value upon row insert Phil Excel Worksheet Functions 4 May 6th 08 02:41 PM
Can I auto insert a worksheet when I insert a value in a cell. iainc Excel Worksheet Functions 0 April 27th 06 08:37 AM
Auto Insert/Auto Formula? Abacus Excel Worksheet Functions 1 February 3rd 06 11:33 AM
auto row insert Tsurphr Excel Worksheet Functions 0 October 11th 05 02:27 PM


All times are GMT +1. The time now is 12:19 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"