Late Binding/Object Library Probelms

B

bony_tony

Hi, I was advised to use 'late binding' here -
http://groups.google.co.uk/group/mi...926a7/9d4381bb5c2a6bb1?hl=en#9d4381bb5c2a6bb1
- as I was updating and saving Excel files on my machine, for other
users who have a previous version of Office..

I'm going through all my Subs using i.e "Dim i as Integer" but I'm
having a problem with some of the code. I had to change "LEFT()" to
"VBA.Strings.LEFT()", and now it has a problem with "xlShiftLeft".
Does anyone know what I should change this to, or if there is any
other way round my Library problem??

I've only 'Late Binded' 2 modules out of 20 so far, so I'm sure
they'll be more problems..

Cheers
Tony
 
J

Jim Thomlinson

Since you are only late binding the Word application you only need to remove
your reference to Word. All of your other reference should remain in place.
If you intend to use any of the constants that come with word then you will
need to declare those but xlShiftLeft is an XL constant and you should have
an intact reference to XL so that should not cause a problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top