400 Errror.

Status
Not open for further replies.

boomshaka

New Member
Joined
Jun 28, 2018
Messages
10
I am getting 400 error. I was able to run the program once and it worked. However, I get the error now.
Data:

Original List
Planned PO1
Break End PO2
Planned PO3
Break End PO4
Break End PO5
Planned PO6
Break End PO7
Planned PO8
Break End PO9
Planned PO10
Break End PO11
Planned PO12
Planned PO13
Planned PO14
Break End PO15
Planned PO16
Break End PO17

<colgroup><col width="64" style="width:48pt" span="2"> </colgroup><tbody>
</tbody>



VBA:


Sub Make2Lists()
Dim Ar As Areas
Dim Rng As Range
Dim i As Long, j As Long
Dim Ary As Variant

j = 4
Ary = Array("Planned", "Break Even")
For i = 0 To UBound(Ary)
With Range("A:A")
.Replace Ary(i), True, xlWhole, , False, , False, False
Set Ar = .SpecialCells(xlConstants, xlLogical).Areas
.Replace True, Ary(i), xlWhole, , False, , False, False
End With
For Each Rng In Ar
Rng.Resize(, 2).Copy Cells(Rows.Count, j).End(xlUp).Offset(1)
Next Rng
j = j + 3
Next i
End Sub
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Status
Not open for further replies.

Forum statistics

Threads
1,217,389
Messages
6,136,317
Members
450,003
Latest member
AnnetteP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top