Advertisement

05.20.2008 at 07:26AM PDT, ID: 23417267
[x]
Attachment Details

Problem with code for creating new worksheets automatically

Asked by hullgreg in Microsoft Office Suite, Microsoft Excel Spreadsheet Software

Tags: Microsoft, Excel, 2003

Hi,

The other day I asked a question about how to automatically have excel create worksheets for me, based on a list,
http://www.experts exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_23408806.html#a21584885

The code I was given works well, however I am having a problem. I have attached a copy of the excel file I am working on as a reference. Basically, right now if I type in a stock symbol into cell A1 of the "ref" sheet, a new worksheet is created from the my "template" worksheet. The code given to me automatically puts the newly created worksheet's name into cell A1 of the new sheet, which makes sure all the data for that stock gets entered in. The problem is when I try to enter in 2 stocks symbols at the same time into the "ref" sheet, I get an error msg. Similarly, if there is already a list of stock symbols there and I try to delete two or more of the symbols at the same time, I get an error msg. One final problem is that I would like it so that only the stocks symbols entered into column A are recognized and created as new worksheets, and Im not sure how to do that. Any help is greatly appreciated,

Greg

Start Free Trial
Attachments:
[+][-]05.21.2008 at 12:25AM PDT, ID: 21612751

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Office Suite, Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003
Sign Up Now!
Solution Provided By: saurabh726
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.21.2008 at 12:35PM PDT, ID: 21618291

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628