Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Runtime error '1004' Cannot change part of a merged cell

Hello,
I have an Excel 2003 VBA app that while I am programmatically deleting
all but the last 3 sheets that remain-after they are deleted-I get the
above error. It won't allow me to set a break point in the code but
the error apparently occurs at the end of performing the For
statement, and doesn't perform any code afterwards.

For ndx = Workbooks("Quotes.xls").Worksheets.Count To 4 Step -1

Workbooks("Quotes.xls").Worksheets(ndx).Delete

Next ndx
The code to my knowledge is not affecting the merged cells unless
inadvertently. Any ideas what the problem could be. I am past a
deadline for getting a demo to a client so any help would be
appreciate. Thanks, God bless, Van
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
Cannot change part of a merged cell happyPotter[_2_] Excel Programming 2 July 6th 05 05:32 PM
ClearContent & 'Cannot change part of a merged cell' error Richard[_34_] Excel Programming 4 June 27th 05 08:06 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 04:07 AM.

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"