Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sort on close - Possible?

I would like to select cells $A$13:$H$500 and sort by column A with text
sorting as numbers on workbook close or save.

Can anyone help?

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Sort on close - Possible?

I'm not sure of it, have heard of it tho.

But if you were to create a macro that sorted out your data for you.

There is, I'm sure of a way of running a macro on exit.

(I think running a macro on exit is normally for validation purposes, but
it's all the same)

You should search and repost if needed for "running a macro on exit" or
something similar.


hope you can find what you're looking for. I've discovered a need for this
in the past, so will look around to see if I can find anything. If I do, I'll
let you know

Dan

---
iPod's ROCK!


"Adamski" wrote:

I would like to select cells $A$13:$H$500 and sort by column A with text
sorting as numbers on workbook close or save.

Can anyone help?

Cheers

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sort on close - Possible?

There's a workbook_beforesave event that you may want to try.

But if you use the workbook_beforeclose event, the user may not save--and if you
save for him/her, it might not be what they want.

If you really want the data sorted for the next time the user opens the
workbook, you could sort it in the workbook_open event (or auto_open sub).



Adamski wrote:

I would like to select cells $A$13:$H$500 and sort by column A with text
sorting as numbers on workbook close or save.

Can anyone help?

Cheers


--

Dave Peterson
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
why do all excel worksheets/workbooks close when I close one? Penny Excel Discussion (Misc queries) 1 November 29th 06 03:49 AM
close button does not close goplayoutside Excel Discussion (Misc queries) 1 October 11th 05 03:42 PM
Pls. reply Sort Data and copy to next coulmn when sort order chang shital shah Excel Programming 1 August 19th 05 02:51 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


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