LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA for excel 2000 It seems a Microsoft problem?


Hello,

Operating system: windows 2000 professional
Excel version: Microsoft Excel 2000 (9.0.2720)

I have already put two times in the issue list but now I can define th
problem exactly. If I use the following piece of code then the exce
file is corrupt:


Sub test_Add_Del_Sheet()
'
' test_Add_Del_Sheet Macro
' Macro recorded 5/27/2005 by NUON
'
' Keyboard Shortcut: Ctrl+g
'
Sheets.Add
Sheets("Sheet2").Select
Sheets("Sheet2").Move After:=Sheets(2)
Sheets("Sheet2").Select
Sheets("Sheet2").Name = "Temp_KV"
Sheets.Add
Sheets("Sheet3").Select
Sheets("Sheet3").Move After:=Sheets(3)
Sheets("Sheet3").Select
Sheets("Sheet3").Name = "Temp_LL"

Application.DisplayAlerts = False

Sheets("Temp_KV").Select
ActiveWindow.SelectedSheets.Delete
Sheets("Temp_LL").Select
ActiveWindow.SelectedSheets.Delete

ChDir "S:\dms\tools\dev_dbb"

ActiveWorkbook.Close savechanges:=True
End Sub


If open the file after running this macro the file is corrupt. See m
attachement for the error I get.

Have anybody a idea or suggestion why this is not working? Do I need
excel update? I can open the file with excel 2003! If I delete th
statement Activeworkbook.close ..... and save the file manually, the
the file is not corrupted!???

Nic

+-------------------------------------------------------------------
|Filename: error.del sheet.gif
|Download: http://www.excelforum.com/attachment.php?postid=3438
+-------------------------------------------------------------------

--
nkam
-----------------------------------------------------------------------
nkamp's Profile: http://www.excelforum.com/member.php...fo&userid=2376
View this thread: http://www.excelforum.com/showthread.php?threadid=37500

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
microsoft excel 2000 calculating problem [email protected] Excel Discussion (Misc queries) 1 December 19th 07 10:26 AM
Microsoft EXCEL 2000 Formula LOU Excel Worksheet Functions 7 September 17th 06 01:54 AM
Microsoft Excel 2000 Apple Pie Queen Excel Discussion (Misc queries) 3 March 29th 06 04:40 AM
Change individual cell heights/widths in Microsoft Excel 2000 like Microsoft Word urbanplanner Excel Discussion (Misc queries) 3 December 7th 05 03:57 PM
Microsoft excel 2000 Al Martino Excel Worksheet Functions 2 April 1st 05 12:36 AM


All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"