I am looking to allow a user to insert a row using a macro and to copy a preformatted line into that position if criteria met. The conditions to be met are:
1. The cursor can be in any column on the sheet (Sheetname CostManager).
2. The line will be inserted at the row of the cursor.
3. If the value in Column C on the row is "1" then the line cannot be inserted at that row and Msg Box should pop up to say "ABCD"
4. If the value in Column C on the row is "0" then the row is inserted and a named range "LineInsert" is copied to the new row.
Is it possible to select how many lines are inserted and copied - say 1 to 5?
Hope someone can help with this as central to my user form working.
Thanks
1. The cursor can be in any column on the sheet (Sheetname CostManager).
2. The line will be inserted at the row of the cursor.
3. If the value in Column C on the row is "1" then the line cannot be inserted at that row and Msg Box should pop up to say "ABCD"
4. If the value in Column C on the row is "0" then the row is inserted and a named range "LineInsert" is copied to the new row.
Is it possible to select how many lines are inserted and copied - say 1 to 5?
Hope someone can help with this as central to my user form working.
Thanks