[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Inserting Excel sheet into the beginning

Posted on 2006-04-14
2
Medium Priority
?
176 Views
Last Modified: 2010-04-23
good day.

i have an application that creates many sheets within a workbook.  i use:

myXLSheet = myxlBook.Sheets.Add(After:=myxlBook.Worksheets(myxlBook.Worksheets.Count))

to add each sheet.

i have a summary sheet that comes at the end and i need to get it into the very beginning.... i have tried using Before:  instead of After: but haven't had any luck.  can someone please let me know the parameters for .Add(Before:=) to get my summary sheet as the first sheet within the workbook?

thank you.

0
Comment
Question by:freezingHot
2 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 500 total points
ID: 16456124
Hello freezingHot,


myXLSheet = myxlBook.Sheets.Add(Before:=myxlBook.Worksheets(1)))

hope this helps a bit
bruintje
0
 
LVL 1

Author Comment

by:freezingHot
ID: 16456158
thank you.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 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