• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Add rows through VBA

Rahim Amir Ali

New Member
Hello All,

Today I was stuck in an issue in which, I want to add a row below, add a row above and delete a row through combo box macro.

Like: it would be a combo box in column C with all the above options. Now, I have to add a row below through this combo box. After selecting any of the above option it will work accordingly and add, del rows.

Note: There is no selection of Active Cell. Only combo box is selected and it will automatically pick the row number on which combo box is located.

Thanks
 
Rahim

Can you please attach a sample file with a description of what you want before and after
 
Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

2. Make sure that your desired results are also shown (mock up the results manually).

3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

4. Try to avoid using merged cells as they cause lots of problems.

Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
 
Back
Top