This is INCREDIBLE! It's so fast! THANK YOU SO MUCH.
The reason I changed to start with row 8 and down--
I read in the forum where another person was copying an entire column, and the response they received to speed things up was to just copy the row that has the data and down.
I'm not sure of forum etiquette, but I have one more column split/move that takes an incredible amount of time. I will list my question below, but if I need to start a new thread, just let me know.
Thanks again for taking the time to help me. It is so appreciated!
====
Another
major time consumer, is splitting data in 1 column into 3 columns.
Supplier has 3 sets of data in column C—need to split into 3 columns (C,D,E)
<TABLE style="WIDTH: 157pt; BORDER-COLLAPSE: collapse; MARGIN-LEFT: 4.65pt" class=ecxMsoNormalTable border=0 cellSpacing=0 cellPadding=0 width=209><TBODY><TR style="HEIGHT: 15pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 157pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=209 noWrap>
COL C
Part#, OrderDate, CustID
</TD></TR><TR style="HEIGHT: 15pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 157pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=209 noWrap>
11-12345 07/23/11 12384858
</TD></TR><TR style="HEIGHT: 15pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 157pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=209 noWrap>
11-3838212 07/21/11 55555
</TD></TR><TR style="HEIGHT: 15pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 157pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=209 noWrap>
11-998877 07/13/11 4747474
</TD></TR></TBODY></TABLE>
need to split as follows:
Column C = Part#
Column D = OrderDate
Column E = CustID
<TABLE style="WIDTH: 438.15pt; BORDER-COLLAPSE: collapse; MARGIN-LEFT: 4.65pt" class=ecxMsoNormalTable border=0 cellSpacing=0 cellPadding=0 width=584><TBODY><TR style="HEIGHT: 15pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 290.3pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=387 noWrap>
COL C COL D COL E
<TABLE style="WIDTH: 287.65pt; BORDER-COLLAPSE: collapse" class=ecxMsoNormalTable border=0 cellSpacing=0 cellPadding=0 width=384><TBODY><TR style="HEIGHT: 14.5pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 124.1pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=165>
Part#
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 76.55pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=102>
OrderDate
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 87pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=116>
CustID
</TD></TR><TR style="HEIGHT: 14.5pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 124.1pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=165>
11-12345
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 76.55pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=102>
7/23/2011
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 87pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=116>
12384858
</TD></TR><TR style="HEIGHT: 14.5pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 124.1pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=165>
11-3838212
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 76.55pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=102>
7/21/2011
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 87pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=116>
55555
</TD></TR><TR style="HEIGHT: 14.5pt"><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 124.1pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=165>
11-998877
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 76.55pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=102>
7/13/2011
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 87pt; PADDING-RIGHT: 5.4pt; HEIGHT: 14.5pt; PADDING-TOP: 0in" vAlign=top width=116>
4747474
</TD></TR></TBODY></TABLE>
</TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 69.1pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=92 noWrap></TD><TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 5.4pt; WIDTH: 78.75pt; PADDING-RIGHT: 5.4pt; HEIGHT: 15pt; PADDING-TOP: 0in" vAlign=bottom width=105 noWrap></TD></TR></TBODY></TABLE>
====
MY CODE:
Sub SplitSupplierColumns()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Dim thelastrow As Long<o></o>
Dim CheckForBlankColumn as string<o></o>
<o></o>
<o></o>
Worksheets("SupplierReport").<o></o>
<o></o>
thelastrow = 0<o></o>
irow = Cells(65536, "A").End(xlUp).Row<o></o>
If irow > thelastrow Then thelastrow = irow<o></o>
<o></o>
With Sheets("SupplierReport").Range("A1:ae" & thelastrow)<o></o>
<o></o>
Application.AlertBeforeOverwriting = False 'turn off msg 'do you want to replace contents of cells'<o></o>
<o></o>
Application.DisplayAlerts = False<o></o>
<o></o>
Columns("C:C").Select<o></o>
Application.CutCopyMode = False<o></o>
Selection.Insert shift:=xlToRight<o></o>
Selection.Insert shift:=xlToRight<o></o>
Selection.Insert shift:=xlToRight<o></o>
Range("B9:B" & thelastrow).Select<o></o>
Selection.Copy<o></o>
Application.CutCopyMode = False<o></o>
Selection.TextToColumns Destination:=Range("B9"), DataType:=xlDelimited, _<o></o>
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=False, _<o></o>
Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo _<o></o>
:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True<o></o>
Range("D8").Select<o></o>
ActiveCell.FormulaR1C1 = "Cust ID"<o></o>
Range("C8").Select<o></o>
ActiveCell.FormulaR1C1 = "Order Date"<o></o>
Range("B8").Select<o></o>
ActiveCell.FormulaR1C1 = "Part #"<o></o>
‘ check if there is a blank column. If so, delete it<o></o>
CheckForBlankColumn = Worksheets("SupplierReport").Cells(8, "E")<o></o>
<o></o>
If CheckForBlankColumn = "" Then 'Have extra column<o></o>
Columns("E:E").Select<o></o>
Selection.Delete shift:=xlToLeft<o></o>
End If <o></o>
<o></o>
End with <o></o>
<o></o>
End Sub<o></o>
<o></o>