Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Need help. I need a macro or program that can sort and copy the
information I enter in one sheet over to another sheet. The information needs to be sorted by name and filed on the distention sheet in that order. As I enter the information or by a command. Example: Sheet 1: John Tom Jim Bob Tom Bob Sheet 2 The information would look like this John Tom Tom Bob Bob Any Idea or am I in to deep? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub CommandButton1_Click()
Dim rng as Range Worksheets("Sheet2").Cells.ClearContents set rng = Worksheets("Sheet1").Range("A1").CurrentRegion rng.copy Destination:=Worksheets("Sheet2").Range("A1") set rng = Worksheets("Sheet2").Range("A1").CurrentRegion rng.sort Key:=rng.Parent.Range("A1") End Sub -- Regards, Tom Ogilvy "cdixon" wrote in message oups.com... Need help. I need a macro or program that can sort and copy the information I enter in one sheet over to another sheet. The information needs to be sorted by name and filed on the distention sheet in that order. As I enter the information or by a command. Example: Sheet 1: John Tom Jim Bob Tom Bob Sheet 2 The information would look like this John Tom Tom Bob Bob Any Idea or am I in to deep? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i auto update cell values after pasting linked references | Excel Worksheet Functions | |||
Auto-populate, Auto-copy or Auto-fill? | Excel Worksheet Functions | |||
Auto Fill with pasting values | Excel Discussion (Misc queries) | |||
can excel auto correct when cutting and pasting | Excel Discussion (Misc queries) | |||
pasting a hi-lighted auto sum | Excel Discussion (Misc queries) |