Solved

Excel - Insert New worksheets

Posted on 2011-02-22
2
810 Views
Last Modified: 2012-05-11
Hi,

Is there a way I can insert a specified number of worksheet (e.g. 35) without the insert - worksheet - click option?

Can I configure this on the menu bar anywhere?

Thanks
0
Comment
Question by:tahirih
2 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 500 total points
ID: 34954946
Place this code in a module

Sub Sample()
    InsertSheets 35
End Sub

Sub InsertSheets(numb As Long)
    Dim i As Long
    If numb < 0 Then Exit Sub
    For i = 1 To numb
        Sheets.Add
    Next
End Sub

Open in new window


And then run the sub sample. You may also add a button to the toolbar to call this sub Sample.

Sid
0
 

Author Closing Comment

by:tahirih
ID: 34955431
Thank you!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question