Invalid procedure call or argument when using other computers

Hi All!

I've been bugging by an error on my macro vba excel "invalid procedure call or argument".

This is the line of the code that has the error. Funny thing is, it's working fine on my laptop but when others try to use it, it give that kind of error. Any idea on how can I resolve this one? Thanks for the help!

 strDate2 = Application.Workbooks("Audit Observation Monitoring System.xlsm").Worksheets("Approver").Range("B4")
     With Application.Workbooks("Audit Observation Monitoring System.xlsm").Worksheets("Calendar").Range("B1:Z1")
            Set rngIndex3 = .Find(What:=strDate2, LookIn:=xlValues) - here is the error
            Application.Goto rngIndex3, True
            d = ActiveCell.Column
    End With
Jay Carmelo CruzIS AuditorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
is strDate2 a date? If so it could be the way it is formatted on the other computers.

How have you declared the variable?
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jay Carmelo CruzIS AuditorAuthor Commented:
Hi Roy,

Thank you for your quick response.

I declared the strDate2 as string as when I tried to declare it as a Date it won't give me the result that  I wanted.  I also attached some screenshot of the excel file.

For the format, the excel file itself is saved on our shared folder. But only one people can use it at a time.

 calendar-date.PNGApprover-Date.PNG
0
Jay Carmelo CruzIS AuditorAuthor Commented:
Hi Roy!

Actually, you are right. For some reason, the laptop of my colleague doesn't have date separator so I'm thinking that is the problem.

Thank you so much!
0
Roy CoxGroup Finance ManagerCommented:
Pleased to help.

Dates can be tricky,  maybe you can incorporate IsDate to check for a valid date.

If the problem is solved then you need to close the question by allocating the points.
0
Jay Carmelo CruzIS AuditorAuthor Commented:
Thank you so much! The problem had been resolved!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.