Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input Box
Hi,
The macro below is attached to a command button that when clicked copies the row and formulas down from the row above. I am finding that I need to insert multiple rows and copy those formulas...Can someone please help me modify the code so that an input box will pop up and ask me how many rows to insert then excute the macro with the number entered. So If I say 2 then it inserts two rows etc? Thanx much Sub insertrowswithformulas() With ActiveCell ...EntireRow.Insert Range(Cells(.Row - 2, "I"), Cells(.Row - 2, "AL")).Copy _ Cells(.Row - 1, "I") Range(Cells(.Row - 2, "B"), Cells(.Row - 2, "G")).Copy _ Cells(.Row - 1, "B") End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to input pictures automatically based on cell input? | Excel Worksheet Functions | |||
input in number form is being multiplied by 1000 when i input. | Excel Discussion (Misc queries) | |||
How do I add input data in the input ranges in drop down boxes. | Excel Discussion (Misc queries) | |||
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF | Excel Worksheet Functions | |||
CODE to select range based on User Input or Value of Input Field | Excel Programming |