Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel - Insert New worksheets

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

838 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