Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run-time error 1004

Anyone - help!

I've got this scenario: Excel 2002 with a sheet where the followng
error comes up:

Run-time error '1004'
Application-defined or object-defined error. When I start the debugger
the following VBA line comes up:

Cells.Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom,
_
DataOption1:=xlSortNormal
End Sub

I can't see the error here. Please help - and merry Christmas to You
all!


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Run-time error 1004

If that's all the code then the error may be caused
because you haven't specified which worksheet you are
referring to.

Try:
ActiveSheet.Cells.Select
-----Original Message-----
Anyone - help!

I've got this scenario: Excel 2002 with a sheet where the

followng
error comes up:

Run-time error '1004'
Application-defined or object-defined error. When I start

the debugger
the following VBA line comes up:

Cells.Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,

Orientation:=xlTopToBottom,
_
DataOption1:=xlSortNormal
End Sub

I can't see the error here. Please help - and merry

Christmas to You
all!


---
Message posted from http://www.ExcelForum.com/

.

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
Run-time error '1004' goconnor Excel Discussion (Misc queries) 8 July 18th 08 12:50 AM
Run time error 1004! steph00 Excel Discussion (Misc queries) 0 May 4th 06 04:45 PM
run time error 1004 johnw Excel Discussion (Misc queries) 0 November 16th 05 11:56 AM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM


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