Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like sheet "klanten" to be sorted on collumn h when i leave this
sheet to go to an other. Worksheet_Deactivate does not seems to do the trick becaurce i have to go back to sheet "klanten" sort and go to the next sheet. I end up with a loop. Can someone help? Greetings Hans |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this?
Option Explicit Private Sub Worksheet_Deactivate() Sheets("Klanten").Columns(8).Sort Key1:=Range("H1"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal End Sub This worked for me. Andrew Armstrong hans wrote: I would like sheet "klanten" to be sorted on collumn h when i leave this sheet to go to an other. Worksheet_Deactivate does not seems to do the trick becaurce i have to go back to sheet "klanten" sort and go to the next sheet. I end up with a loop. Can someone help? Greetings Hans |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Hans
"AndrewArmstrong" schreef in bericht oups.com... Try this? Option Explicit Private Sub Worksheet_Deactivate() Sheets("Klanten").Columns(8).Sort Key1:=Range("H1"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal End Sub This worked for me. Andrew Armstrong hans wrote: I would like sheet "klanten" to be sorted on collumn h when i leave this sheet to go to an other. Worksheet_Deactivate does not seems to do the trick becaurce i have to go back to sheet "klanten" sort and go to the next sheet. I end up with a loop. Can someone help? Greetings Hans |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
avoid Descending Sort putting error cells uppermost in collumn | Excel Worksheet Functions | |||
Updating workbook with an alpha sort sheet and a numeric sort shee | Excel Discussion (Misc queries) | |||
counting if data from one collumn is present in another collumn | Excel Worksheet Functions | |||
Sort on collumn h when leaving site | Excel Programming | |||
sort macro that works after leaving worksheet | Excel Discussion (Misc queries) |