LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Data sorting with a twist

Not sure how to ask this, but will do my best. I have the code below, which
places the contents of ListBox1 into the active cell (I use this to fill in
and edit an annual vacation calendar for a department of about 60 people).
Each day there can be up to 5 people off, so each day is made up of 5 rows.
When entering or removing names (and this is do through out the year) I
click on the first empty cell (or the cell containing the name I want to
delete), What I need is some code that will some how select all 5 rows and
sort the names.




Private Sub OK_Click()

Application.ScreenUpdating = False
On Error GoTo EndMacro
Selection = ListBox1.Value
EndMacro:
Me.Hide
Unload EmployeeList
ListBox1.ListIndex = -1
Application.ScreenUpdating = True

End Sub


 
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
Alpha sorting (with a twist...?) Jason F. Excel Discussion (Misc queries) 3 July 8th 09 12:02 AM
Add Column Data with Twist John Excel Worksheet Functions 3 June 25th 06 08:42 AM
Sorting by Date (With a Twist) B. Baumgartner Excel Discussion (Misc queries) 2 August 5th 05 02:20 AM
normalizing data -- a twist Brad Excel Worksheet Functions 6 June 4th 05 03:42 PM
Data Validation twist Carim[_3_] Excel Programming 7 April 29th 05 03:24 PM


All times are GMT +1. The time now is 03:02 AM.

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"