Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Sort problem (one column)

Hi,

I found out that the warning has nothing to do with it. Now, I still get
the waring manually and I can sort programmatically. I don't know what has
changed? When I close the workbook and restart it, the sort cannot take
place (Error code 1004 method Sort of class Range failed). The sheet is
protected but that state does not affect the error. After doing some
actions, at a sudden time, the command works.

Please help,

Jos Vens


"Jos Vens" schreef in bericht
...
Hi,

I have some difficulties to sort one column. A warning prevents me to

sort
programmatically

'My code
spParameters.[aCampus].Sort Key1:=spParameters.[aCampus],
Order1:=xlAscending, Header:=xlNo, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom

when I sort manually, I get this message, which is described on the

internet
If you only want to sort part of the data, you have to select it first:

1.. Click on the column heading letter B to select that column
2.. Click on [Sort Ascending] - a warning message appears:

3.. Select Continue with the current selection - press <Return for

[Sort]
Since my sort is only on one colomn, everything is OK with the current
selection. How can I surpass this warning programmatically?



Thanks

Jos Vens





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Sort problem (one column) - Solution

Sorry for bothering you,

it was the protection of the sheet that did not let me sort! Unprotecting
the sheet lets my code run fine. Sorry.

Jos Vens


"Jos Vens" schreef in bericht
...
Hi,

I found out that the warning has nothing to do with it. Now, I still get
the waring manually and I can sort programmatically. I don't know what

has
changed? When I close the workbook and restart it, the sort cannot take
place (Error code 1004 method Sort of class Range failed). The sheet is
protected but that state does not affect the error. After doing some
actions, at a sudden time, the command works.

Please help,

Jos Vens


"Jos Vens" schreef in bericht
...
Hi,

I have some difficulties to sort one column. A warning prevents me to

sort
programmatically

'My code
spParameters.[aCampus].Sort Key1:=spParameters.[aCampus],
Order1:=xlAscending, Header:=xlNo, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom

when I sort manually, I get this message, which is described on the

internet
If you only want to sort part of the data, you have to select it first:

1.. Click on the column heading letter B to select that column
2.. Click on [Sort Ascending] - a warning message appears:

3.. Select Continue with the current selection - press <Return for

[Sort]
Since my sort is only on one colomn, everything is OK with the current
selection. How can I surpass this warning programmatically?



Thanks

Jos Vens







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
How to sort without including column headings in sort OPDvolunteer Excel Discussion (Misc queries) 4 March 11th 09 04:08 PM
Auto-Sort Won't Sort All Column Cells TikiTembo Excel Discussion (Misc queries) 1 March 25th 08 07:00 PM
data, sort option is grayed. how to sort on a column? Steve Richter Excel Discussion (Misc queries) 1 September 25th 07 03:25 PM
my column is sorted in two sections. How do I sort entire column? Bob Umlas, Excel MVP Excel Discussion (Misc queries) 0 February 13th 06 08:41 PM
How can I sort one column and have the entire row sort. (binding) Blue Excel Worksheet Functions 10 November 13th 05 07:09 PM


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