Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
sort method
Why do I get a compile error 'Expected: =" when I try to call the following
procedure I created? Private Sub SortPricingDataRange() Dim myRange As Range Set myRange = Worksheets("Sheet3").Range("A1:E6") myRange.Sort _ Key1:=Worksheets("Sheet3").Range("A1"), _ Key2:=Worksheets("Sheet3").Range("B1"), _ Key3:=Worksheets("Sheet3").Range("C1"), _ Header:=xlYes End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
sort method
i didn't get an error, seemed to work ok with my test data
-- Gary "badazizi" wrote in message ... Why do I get a compile error 'Expected: =" when I try to call the following procedure I created? Private Sub SortPricingDataRange() Dim myRange As Range Set myRange = Worksheets("Sheet3").Range("A1:E6") myRange.Sort _ Key1:=Worksheets("Sheet3").Range("A1"), _ Key2:=Worksheets("Sheet3").Range("B1"), _ Key3:=Worksheets("Sheet3").Range("C1"), _ Header:=xlYes End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
sort method
Your code ran fine for me. (even as the click event of a commandbutton on
another sheet). -- Regards, Tom Ogilvy -- Regards, Tom Ogilvy "badazizi" wrote in message ... Why do I get a compile error 'Expected: =" when I try to call the following procedure I created? Private Sub SortPricingDataRange() Dim myRange As Range Set myRange = Worksheets("Sheet3").Range("A1:E6") myRange.Sort _ Key1:=Worksheets("Sheet3").Range("A1"), _ Key2:=Worksheets("Sheet3").Range("B1"), _ Key3:=Worksheets("Sheet3").Range("C1"), _ Header:=xlYes End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with Sort Method | Excel Programming | |||
sort method | Excel Programming | |||
Using the Sort Method | Excel Programming | |||
Sort Method | Excel Programming | |||
sort method frustration | Excel Programming |