473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Delete Sheets in Excel

I am trying to delete the default sheets that appear whenever you make a new
workbook in Excel. I can't seem to find any documentation on this in the
..NET help. I tried creating a macro that does it, and use the code from
that, but I cannot seem to find the right combination of calls to do it.

Any help would be greatly appreciated, thank you in advance.

Atley
Nov 21 '05 #1
3 1697
You won't find it in the .Net help. Have a look in the Excel help, or look
for a file called VBAXL10.chm

"Atley" <at*****@hotmail.com> wrote in message
news:%2********************@TK2MSFTNGP14.phx.gbl.. .
I am trying to delete the default sheets that appear whenever you make a
new
workbook in Excel. I can't seem to find any documentation on this in the
.NET help. I tried creating a macro that does it, and use the code from
that, but I cannot seem to find the right combination of calls to do it.

Any help would be greatly appreciated, thank you in advance.

Atley

Nov 21 '05 #2
PS It's something like

Worksheets("Sheet3").Delete

"Atley" <at*****@hotmail.com> wrote in message
news:%2********************@TK2MSFTNGP14.phx.gbl.. .
I am trying to delete the default sheets that appear whenever you make a
new
workbook in Excel. I can't seem to find any documentation on this in the
.NET help. I tried creating a macro that does it, and use the code from
that, but I cannot seem to find the right combination of calls to do it.

Any help would be greatly appreciated, thank you in advance.

Atley

Nov 21 '05 #3
Thanks, that wasn't exactly it, but I was able to find the proper method by
playing with that statement.
thank you for the help!
"JohnFol" <Ou************@WibbleObbble.Com> wrote in message
news:yL****************@newsfe3-win.ntli.net...
PS It's something like

Worksheets("Sheet3").Delete

"Atley" <at*****@hotmail.com> wrote in message
news:%2********************@TK2MSFTNGP14.phx.gbl.. .
I am trying to delete the default sheets that appear whenever you make a
new
workbook in Excel. I can't seem to find any documentation on this in the .NET help. I tried creating a macro that does it, and use the code from
that, but I cannot seem to find the right combination of calls to do it.

Any help would be greatly appreciated, thank you in advance.

Atley


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ilan | last post by:
Hi all I need to add data from two Excel sheets (both on the same workbook) to an existing table in my SQL DB. The problem is that each sheet holds different fields for the same record, though...
1
by: Mahesh Kumar | last post by:
hi, I have two excel files(a1.xls and b.xls) each having 4 sheets. I want to read datas of 4 sheets from b1.xls and it has to be inserted in a1.xls as 4 sheets. First it has to delete all datas...
2
by: Bob | last post by:
In the following code, when the DELETE line is executed I get a dialog asking if I want to delete or to cancel. How do I turn it off? Also when the first CLOSE line is executed, the application so...
2
by: Bas | last post by:
I',m trying to delete a named worksheet - what's wrong with this?? xlApp = New Excel.Application() Dim xWorkbook As Excel.Workbook Dim PageSht As Excel.Worksheet xWorkbook =...
3
by: Rene | last post by:
Hi Proggies, i try to delete an excel worksheet but nothing happens (work on vb.net 2005) ..... xlSheet = xlApp.Sheets("Master") xlSheet.select xlSheet.delete also try
5
by: Bertha94 | last post by:
I have a workbook with many sheets, and I am trying to delete the sheets that have a certain value in cell A1. My code will not continue going to the next sheets once the condition is not met. Can...
4
by: Harshe | last post by:
hello all, I am trying to code, but i am just stuck after importing one sheet. so here is the gist of what i need help with. In a workbook at the start of the year (january) i will have 4...
2
by: deve8ore | last post by:
Hello, I'm working with Adobe Reader 8.0, working on a project for work, so not allowed to download any other software/ freeware. We receive PDF files frequently with about 20 sheets. I'd like...
2
by: deve8ore | last post by:
Hello, I have an Excel workbook with ~ 21 sheets in it. Let's say 7 are named "Red1", "Red2", "Red3", ect.... Another 7 are named for "Green1, 2, 3", ect... and the last 7 are named "Blue1, 2,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.