Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Macros cells.EntireRow.Hidden = True and Range.Sort are stopping

A client has a very large excel workbook with a lot of macros to hide and
show data for different reports. This worked fine in excel 2000 but now they
have upgraded to 2003 and it doesnt work any more. I have identified that
the two lines that are having the problems are

Cells.EntireRow.Hidden = True
Range("Something").sort key1:="somekey€¯, order1:=xlAscending...

Sometimes it will just stop when it reaches these lines and if you run it
again it will work. Other times it doesnt matter how many times you run it,
it wont get past either of these lines.

There is an error handler around these lines but no error is thrown, it just
stops. I have a feeling it might be something funny with the data in the
workbook but I have no idea how to check or what could be causing it.

Any help will be greatly appreciated. Thanks
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
Sort a Range in a Hidden sheet helmekki[_116_] Excel Programming 3 November 22nd 05 10:03 PM
Stopping automatic macros Yorke Excel Programming 1 November 1st 05 08:53 PM
setting range().hidden=True causes range error 1004 STEVE BELL Excel Programming 6 September 2nd 05 02:16 AM
Stopping macros running? Ben Vince UK Excel Programming 2 April 19th 05 04:51 PM
EntireRow.Hidden Jonas Haettner Excel Programming 1 October 24th 03 09:19 AM


All times are GMT +1. The time now is 09:38 AM.

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"