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 Sorting troubles

Hello,

I'm trying to run this section of my code:

Workbooks("Master Spreadsheet vs Database Macro.xls"). _
Sheets("Results").range(Cells(7, 1), Cells(50, 9)).Sort _
Key1:=Workbooks("Master Spreadsheet vs Database Macro.xls"). _
Sheets("Results").Columns("E"), Order1:=xlAscending

and I get this error:

Run-time error '1004';
Application-defined or object-defined error

I know the problem has something to do with using the range

(Cells(7, 1), Cells(50, 9))

, because it works if I use the range

("a7:i50")

instead. Shouldn't both ranges work?

Thanks in advance,

Jeff
 
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
Troubles Jonas Krogh Excel Discussion (Misc queries) 1 October 22nd 09 11:14 AM
COM Add-in Troubles Howard Excel Discussion (Misc queries) 0 May 22nd 07 01:59 PM
IF troubles JG Excel Worksheet Functions 6 December 24th 06 04:58 AM
date sorting troubles Nevin Setting up and Configuration of Excel 5 June 14th 06 10:13 PM
Formula Troubles........ Tracy B Excel Worksheet Functions 0 April 8th 05 03:35 PM


All times are GMT +1. The time now is 12:04 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"