Hi all, been some time since I've worked VBA. Pulled up an old code but it isn't working. Basically, I'm trying to open a Word document to do some data crunching.
I thought it worked before, but it's been a while and I'm just a novice. Can anyone see the problem? Thanks.
Code:
Dim objWord
Dim objDoc
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents("C:\Users\me\Desktop\TestFile.docx").Activate
I thought it worked before, but it's been a while and I'm just a novice. Can anyone see the problem? Thanks.