Solved

Excel - Insert New worksheets

Posted on 2011-02-22
2
808 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
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 …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now