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

Why Are You Still Getting Paid Only Once?

You spend weeks building a project.

Your client pays you.

Then the income stops.

Meanwhile, other developers are turning similar skills into products that generate revenue month after month.

A SaaS, plugin, web app, or digital product can continue bringing in customers long after it's launched.

The real question isn't whether you can build one.

It's how much money you're leaving on the table by not starting.

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

Easily Edit HTML Table Rows Or Cells With jQuery
145 views
How To Create A Secure Login System With PHP And MySQL
134 views
PHP Simple Database Class
134 views

Categories

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