Active X Error

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
Macro had been working fine now I get a message saying

Run time error 429

ActiveX component cannot create object

The code I have is ....


finalrow = Cells(Rows.Count, 2).End(xlUp).Row

For i = finalrow To 4 Step -1

If Cells(i, 13) = "AST" Or Cells(i, 13) = "SST" Then

Range(Cells(i, 2), Cells(i, 14)).Delete

End If

Next i

Range("A3").Select
Selection.AutoFill Destination:=Range("A3:A1229")
Range("A3:P" & finalrow).Sort Key1:=Range("H3"), Order1:=xlAscending, Key2:= _
Range("G3"), Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, _
DataOption2:=xlSortNormal

End sub




Any ideas please as setting this small bit of code for various reason is driving me completely bonkers!!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is that all the code?

Which line causes the error?
 
Upvote 0
Where is this code located?

Is it definitely all the code?
 
Upvote 0
Well very oddly, I closed it all down and re-opened it and now it works fine.....I think I am going mad...sorry for wasting your time
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

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