• 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.

VBA insert data to first empty cell of one column and last used row of another column

shafiq2

New Member
Hi,

I am looking for a VBA code to insert data which selected in userform to excel from first empty row in column D to lastused row of column A.

for example if I select a name in combobox

the selected name should be inserted in excel in the next empty cell of column D till last used row of column A.

I know how to insert data from userform but i can not figure out how to select the first empty row of column D till last used row of column A.

Best Regards,
Shafiq
 
Thank you Somendra it works perfectly, but can you please change the code to paste the data in any empty row in range D. This is because when I run the macro the empty rows can be between used rows.

The lastrow in column A and D is always the same.

Best Regards,
Shafiq
 
Back
Top