run time error 1004

Mr Marvin

New Member
Joined
Sep 8, 2021
Messages
31
Office Version
  1. 2019
Platform
  1. Windows
hi, i need some help please. i have a workbook with several worksheets in that contained macro. i am trying to create a macro that would call on other macros to save doing it individually. when i start the process it gets so far then i come up with a run time error 1004 on this code

Sub SortDataWithHeaderCondAcc()

Worksheets("CondAccData").Range("A1:N1000").Columns.Sort key1:=Columns("F"), Order1:=xlDescending


End Sub

i am at a loss. i have a worksheet in the same workbook called data with the same code and it works fine..
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
this is my call macro code

Sub Macro1()

Application.Run "FormatPivotTable"




'The following line will run Macro2
Call CondAccDataMacro2

'When Macro2 is complete the code will continue
'to run below the call line in this macro

Call Macro3

End Sub
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,317
Members
449,218
Latest member
Excel Master

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