Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I was trying to run a Word macro on a Mac. That macro contains the split() function. When I run this it is throwing an error saying function or sub not defined.

StrArr = Split(InputString, ":", -1, vbTextCompare)

I searched on the Internet and found that Mac Word 2004 is supported by VBA 5 and split() is introduced in VBA 6 only. I'm unable to find the proper solution for this, please help me.

share|improve this question
add comment

1 Answer

Office for Mac 2004 is too old. You need to upgrade to Office 2011, which has the function you want:

Office for Mac 2011 comes with VBA 6.5, ported from Office for Windows. Source - Apple Store Q & A

(I'm assuming VBA 6.5 didn't remove the split() function from 6.0.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.