![]() |
|
#1
|
|||
|
|||
|
I have a problem with some code that I wrote. It gives me an error called Method of data member not found. Don't understand and can't fix it.
Can you help??? Code:
With Sheet2
'get rid of any null strings stored in the cells for Print
With .Range("Cp3:Df3980")
.Value = .Value
End With
With .Sort
'set up the sort fields for Print on (data tab)
With .SortFields
.Clear
.Add Key:=Sheet2.Range("Cp3:Cp3980"), _
SortOn:=xlSortOnValues, _
Order:=xlAscending, _
DataOption:=xlSortNormal
.Add Key:=Sheet2.Range("Cq3:Cq3980"), _
SortOn:=xlSortOnValues, _
Order:=xlAscending, _
DataOption:=xlSortNormal
End With
End With
'set up the rest of the sort and apply for Print
.SetRange Sheet2.Range("Cp3:Df3980")
.Header = xlNo
.MatchCase = False
.Orientation = xlSortColumns
.SortMethod = xlPinYin
.Apply
End With
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| If two geographical data match in two sheets, copy unique id/code found in one sheet | alliage | Excel | 1 | 09-01-2011 05:23 AM |
| Outlook 2010 problem (new member) | Cullers | Outlook | 0 | 01-21-2011 10:18 AM |
| How can I use a colom of data if a specific value is found. | Grapejuice | Excel | 1 | 08-11-2006 11:44 PM |
| New Member with a problem | davieG | Outlook | 0 | 06-03-2006 02:45 PM |
| Retrict Method Condition | markp | Outlook | 0 | 12-22-2005 05:38 PM |