Code With Mark
Home
About
Resources
Contact

In 5 Seconds Auto Create Multiple Sheets In Excel

Learn how to auto create multiple excel sheets in 5 seconds.

Below is the code:

Function create_sheets()

    Dim i As Long, LastRow As Long, ws As Worksheet
    
    Sheets("Names").Activate
    
    LastRow = 4
    
    For i = 1 To LastRow
        
        'copy sheet from template
        Sheets("Template").Copy After:=Sheets(i)
        ActiveSheet.Name = Sheets("Names").Cells(i, 1)
        
        'update dc number
        ActiveSheet.Range("b2").Value = ActiveSheet.Name
        
    Next i
    
    MsgBox "Done creating sheets"
    

End Function
For Web Developers

Working Hard But Still Not Getting Ahead?

You finish a project, get paid, and then it's back to finding the next client.

Month after month, the cycle repeats.

That's why many web developers never build real financial freedom—even though they're highly skilled.

The developers creating long-term wealth are using those same skills to build SaaS products, plugins, and digital tools that generate recurring income.

What if your next project could pay you more than once?

Learn How To Build Monthly Income →
HTML Datatable - Export To Excel | CSV | PDFHTML Datatable - Export To Excel | CSV | PDF←Previous
Learn How To Easily Create Single Page Application (SPA) FASTLearn How To Easily Create Single Page Application (SPA) FASTNext→

Related Posts

  • How Google Developers Think (And Why You Should Too)
  • Add Google Sign-In in 2 Minutes
  • Easily Edit HTML Table Rows Or Cells With jQuery

Top Posts Viewed

Google Sheets Timesheet Website App Script
1.79K views
Learn To Create YouTube Video Downloader
1.28K views
Easily Edit HTML Table Rows Or Cells With jQuery
885 views

Categories

Courses
Excel
Google Script
Javascript
jQuery
Microsoft Access
MongoDB
Node JS
PHP
Quick Tip
Uncategorized
Wordpress