Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default RunTime Error 5

Why would this fail:
ActiveWindow.Close , savechanges:=False

Even if I stick this line before it, I still get a runtime error 5:
On Error Resume Next
I just loaded the workbook, read some data and I want to close it without
saving changes, but I am getting runtime error 5, invalid procedure call or
argument.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default RunTime Error 5

use

ActiveWorkbook.Close SaveChanges:=False

Regards
Nigel


"Mike H." wrote in message
...
Why would this fail:
ActiveWindow.Close , savechanges:=False

Even if I stick this line before it, I still get a runtime error 5:
On Error Resume Next
I just loaded the workbook, read some data and I want to close it without
saving changes, but I am getting runtime error 5, invalid procedure call
or
argument.


Reply
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
runtime error '1004' application or object defined error Janis Excel Programming 4 November 18th 09 03:01 PM
runtime error '1004' application or object defined error. Please help deej Excel Programming 0 August 1st 07 09:26 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM
Unknown where is the problem on the Runtime error - Automation error wellie Excel Programming 1 July 10th 03 08:12 AM


All times are GMT +1. The time now is 08:21 PM.

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

About Us

"It's about Microsoft Excel"