troubleshooting Question

How to trigger a macro on new sheet creation in excel

Avatar of Pierre Ammoun
Pierre AmmounFlag for Lebanon asked on
Microsoft OfficeMicrosoft ExcelVBA
11 Comments2 Solutions62 ViewsLast Modified:

I would like to create a macro that will trigger when I create a new sheet in excel (clicking the + on the sheets status bar.

That macro will basically increase a counter that.i have in sheet1 (the template that I will create).

I’m in need of this because I’m creating an invoice template whereby whenever I create a new invoice (new sheet) the invoice number will get automatically increased by 1 (counter).

I of course would welcome another solution if there is a better / more reliable one.
Pierre Ammoun
Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros