What is a 424 Object req error?

ghrek

Active Member
Joined
Jul 29, 2005
Messages
426
Hi

I aint got a clue where to start here. Im trying to run a macro and comes up with 424 Object required.

Any Ideas? Macro shown below..

Workbooks.Open Filename:= _
"\\lo-nas01\Passenger Accounts\SHARED\passacc\Excel\passacc\os2020.xlsm"

If Wb.ReadOnly Then
MsgBox "THIS FILE IS READ ONLY"

End If
End Sub
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
What is Wb supposed to be? If it's meant to be the workbook you just opened, then you didn't assign it. You should use:

Code:
Set Wb = Workbooks.Open(Filename:= _
"\\lo-nas01\Passenger Accounts\SHARED\passacc\Excel\passacc\os2020.xlsm")
 
Upvote 0
Solution
Tried that and it done want to pen my workbook at all now.

What im trying to do is open the workbook via macro but if someone else tries to get into it I need it to come up with a message box advising "READ ONLY"
 
Upvote 0
Sorry was me. Had put part of the address in lower instead of Upper case... Thanks anyway.
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,559
Members
449,171
Latest member
jominadeo

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