Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel - Insert New worksheets

Posted on 2011-02-22
2
Medium Priority
?
819 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

877 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