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: 3,290
Default sort method of range class failed

Well, it tells me that Excel didn't do the sort.
The only problem I can see from your post is that, on the end of the sort line,
there should be a line continuation character:
Range("A6:EZ65500").Sort Key1:=Range("A6:A65500"), _

also...
The "With Selection" and "End With" don't do anything and can be removed.

It doesn't have anything to do with the sort, but is the UserForm really
named "UserForm" ?
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"KyWilde"
wrote in message
What does this error mean in VBA?

I have the following code and it was working before, but all of a sudden I'm
receiving the error above.

Private Sub Done_Click()
Dim lRow As Long
Dim counter As Integer
Dim r1 As Range, r2 As Range

Worksheets("Output").Select

lRow = Range("A65536").End(xlUp).Row

Set r1 = Range(Cells(lRow, 7), Cells(lRow, 140))
Set r2 = Range(Cells(lRow + 1, 7), Cells(lRow + 1, 140))

r1.Copy r2

With Selection
Range("A6:EZ65500").Sort Key1:=Range("A6:A65500"),
Key2:=Range("B6:B65500")
End With

NameFind

Unload UserForm

End Sub


Any help would be wonderful! Thanks!

-Kyrsten Wilde

 
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
autofill method of range class failed phil2006[_16_] Excel Programming 2 June 28th 06 12:08 PM
Select method of range class failed sa02000[_4_] Excel Programming 1 October 5th 05 01:20 PM
Select method of range class failed sa02000[_5_] Excel Programming 5 October 5th 05 09:10 AM
What did I do? (Select Method of Range Class Failed ) HotRod Excel Programming 9 May 20th 05 02:11 PM
Insert method of range class failed quartz[_2_] Excel Programming 0 August 17th 04 07:31 PM


All times are GMT +1. The time now is 11:34 PM.

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"