Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get error 400 when i run this, I cant figure out whats causing it, can
anyone help please? What it should be doing is copying all the lines on the sheet to there own proper sheets, using the value in the B column as the sheet name, it should be copying them starting in the first row that is unused. Thanks so much! Sub Macro1() ThisSheet = ActiveSheet.Name Range("B4").Select ActiveCell.Offset(1, 0).Range("A1").Select Do Until ActiveCell.Value = "" ToSheet = ActiveCell.Value ActiveCell.EntireRow.Copy Sheets(ToSheet).Select Range("A1").Select Selection.End(xlDown).Select If ActiveCell.Row = 26 Then Range("A2").Select Else ActiveCell.Offset(1, 0).Range("A1").Select End If ActiveSheet.Paste Sheets(ThisSheet).Select ActiveCell.Offset(1, 0).Range("A1").Select Loop Application.CutCopyMode = False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't figure this out... | Excel Discussion (Misc queries) | |||
HOW TO 'BLINK' A FIGURE INSTEAD OFF BOLDING THE FIGURE | Excel Worksheet Functions | |||
Can't figure this out!!! | Excel Worksheet Functions | |||
Some Error that I can't figure out. | Excel Discussion (Misc queries) | |||
help me figure out this buG? | Excel Programming |