General Help: Gettign 424 Must be simple

JPARKHURST

Board Regular
Joined
Oct 25, 2016
Messages
151
Getting Runtime error 424 Object Expected.

Attempting to get several functions to run, I'm encountering an error from go. I still have much learnign to do in Excel, I'm not really sure what to research on this, though. Any help is welcome.

Error is occurring on the second line where I am attempting to setup a range.

Here is the complete sub:

Sub PrepareSchedule()
Dim rngJobDispatch As Range
rngJobDispatch = wbSchedule.wsJobDispatch.UsedRange

'Clear Worksheet we will be moving data to3
ClearWorksheet wsWorkingDispatch, "D"
MsgBox ("ClearWorksheet has been completed")

'Sort Range
SortRange (rngJobDispatch)
MsgBox ("SortRange has been completed")

'Replace Assy & Pack
ReplaceAP
MsgBox ("Replace Assy & Pack has been completed")

'Copy Job_Dispatch Jobs List to Working_Dispatch
wsJobDispatch.Range("B:B").Copy (wsWorkingDispatch.Range("D:D"))
MsgBox ("Jobs have been copied from Job_Dispatch to Working_Dispatch")

'Clear Shortage Report to Prepare for Dump
ClearWorksheet wsShortages, "B"
MsgBox ("Shortage Report has been cleared and is ready for dump.")

End Sub


TIA,

Jon
 
Glad to help & thanks for the feedback
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,956
Messages
6,175,609
Members
452,660
Latest member
Zatman

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