View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kathrine Kathrine is offline
external usenet poster
 
Posts: 48
Default Force sort before worksheet exit

I have a list of data that I want to ensure is sorted when the user exits
from the worksheet.

Today I have a button with a macro attached to it (sort_data). But the user
will have to actually push the button. If he forgets there is a risk that
functions like INDEX in other sheets won't work properly....

Can I use VBA to detect worksheet exit and trigger the sort macro before
leaving?