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

Why Are Developers Switching to Shiply CMS?

Because they're tired of:

  • ✓ Bloated admin dashboards
  • ✓ Endless plugin maintenance
  • ✓ Spending hours on tasks that should take minutes

If that sounds familiar, Shiply CMS might be worth a look.

Take a Look →
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

Using JavaScript Window Onload Event Correctly
339 views
How Google Developers Think (And Why You Should Too)
295 views
Learn To Create YouTube Video Downloader
292 views

Categories

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