LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Excel Sort Problem...

On Jun 14, 10:44 am, "Jim Cone" wrote:
20 is the default value (in cells(17, 24)...

If selected range to sort is...
"TempList.Range("M20:W" & TempList.Cells(17, 24).Value - 1).Select"
then the sort range resolves to Range("M20:W19).
That's only two rows?
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware

"theSquirrel"
wrote in message
Thank you for the reply's, answers to questions...

Jim Cone questions:
1. Is TempList a Public Variable declared at the top of a general
module?
2. Do you Set TempList to an actual sheet?
3. Is TempList the active sheet?
4. Is there a numeric value in cells(17, 24)?
5. Does column(S) have sort values in it?

1. Yes it is a public variable working in every other module and user
form I have in the program
2. I set it also in a general module to an actual sheet
3. TempList is the active sheet (which is why this puzzles me so)
4. Yes, 20 is the default value
5. Yes, if the program gets to that point there are values there
(That is the reason for the 'If Me.lstSeriesName.listIndex = -1 Then
Exit Sub' at the top of this sub.

Gimme_This_Gimme_That comments:
- I tried the msgbox Selection.Address and it turned up the correct
range in the case of my test '$M$20:$W$52'
- I know that it looks funny, but i did use a variable in place of
the direct reference in that place before and had the same problem.

I appreciate the any additional help. If you would like to see the
rest of the program, I can supply a link to it just email me. The
program is nearly done outside of this problem.


Problem solved!

As it turns out regardless of the cells being unlocked, the sort
function is unavailable when the sheet with the cells you are trying
to sort is locked.

I have not tried this on my other program but it works on this one.

 
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
excel 2007 sort problem cindy Excel Worksheet Functions 2 October 3rd 07 01:01 PM
excel sort problem Daniel Excel Worksheet Functions 5 April 28th 07 09:34 PM
Zip code sort is an Excel problem even when using the special cat. camead Excel Discussion (Misc queries) 2 March 31st 05 01:15 AM
Sort problem in shared excel file Jan Grinwis Excel Programming 1 September 9th 04 11:11 PM
Excel 2k VBA problem - For loops interating a sort robert_m_mills[_2_] Excel Programming 3 June 9th 04 06:57 PM


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