Hi,
When using the mid() function in MS Word 97 VBA I get the following error:
"Cannot find project or library"
Am i missing any project references?
Does anybody know how to write a mid() function?
Any ideas??
Thanks :)
Printable View
Hi,
When using the mid() function in MS Word 97 VBA I get the following error:
"Cannot find project or library"
Am i missing any project references?
Does anybody know how to write a mid() function?
Any ideas??
Thanks :)
Mid(String, Start, Length), in VB 6.0 at least.
Mike
Well, that is what I am doing Mid(String, Start, Length), except I am still receiving the same error???
sText="this is a sample text"
myVariable = mid(sText, 6,2)
' myVariable will be "is"
u don't need any reference at all
Well, the weird thing is, it works ok on my machine, however, on my colleague's maching he receives the error.
I didn't think it was the reference thing, so I guess it must be something else.
i've checked the references word uses (standard references):
- Visual Basic for Applications
- Microsoft word 9.0 Object library
- ole automation
- normal
- microsoft office 9.0 object library
maybe you could check these? (! i'm using word 2000!)
reference it directly like this:
VBA.Mid$(String, Start, Length)