![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 32
|
How do I insert a row using a macro button that insert the row beneath the row that the macro button is touching?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
Curious....why not just put the Insert Row toolbar button up on the toolbar, or even on its own floating toolbar?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
hi --
can i ask what your trying to do? i love the question but can not work how this will be usable, the button will need to be moved about, can i suggest that the row is inserted below the active cell??? so that you select the row any column abd run the script so the row is inserted, thus no need for moving a button about all the time and that would be some complex script... If thisis of in sure i can write some VBA code. HTH Rdgs ========== Jack |
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Posts: 32
|
It's a sales tracking tool to be used by very non-excel oriented people all over the country. They need to enter rows based on the number of sales and they need a tool to facilitate this under several different salespersons sections. (i.e., sales rep A consists of rows 4:8 initially, sales rep B consists of rows 10:14, etc... more rows need to be added to the specific rep that exceeds four sales a month.)
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 32
|
Any suggestions?
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Feb 2002
Location: Washington State
Posts: 33
|
Maybe a stupid suggestion, but why not do a workbook with a seperate sheet for each salesman, then as long as they don't have more than 65,536 sales a month there shouldn't be any need to add a row.
Rick |
|
|
|
|
|
#7 |
|
New Member
Join Date: Feb 2002
Posts: 32
|
This is a sold orders entry page that populates an individual reps own sheet.
Any ideas on how to do this? |
|
|
|
|
|
#8 |
|
New Member
Join Date: Feb 2002
Posts: 32
|
Any suggestions?
|
|
|
|
|
|
#9 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
|
|
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Try this:
CommandButton1.BottomRightCell.Offset(1).EntireRow.Insert |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|