3

I am trying to create a drop down on a particular column on creation of a new sheet by the user.

The drop down is present as a template in a hidden sheet which needs to be populated on creation of a new sheet on a particular column.

1) I guess there should be some event which needs to be triggered on creation of new sheet and den call a macro

2) The macro will populate each cell in a particular column with the list of values

Can some one guide me how to do this....

1 Answer 1

8

In VBA, in the ThisWorkbook module, you can create an event handler for the New Sheet event:

Private Sub Workbook_NewSheet(ByVal Sh As Object)
    <copy stuff from ThisWorkbook.Worksheets("TemplateSheetName") to sh.cells(...)>
End Sub
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.