Question Could not open macro storage

FlashOwl

Member
Joined
Jul 15, 2011
Messages
9
Programming Experience
10+
I am getting an error "could not open macro storage" when trying to open a docx file using vb.net (3.5). It works on some machines but not others. For example it errors on a windows 7 machine running office 2010.

Heres the line of code that causes the problem:-
VB.NET:
pDoc = mWordApp.Documents.Add(pFilepath)

I have tried:
1. Renaming the normal.dotm file.
2. Running my program as administrator.
3. Moving the docx file onto the local machine.

None of this has worked.

Any ideas?
 
I found the solution. Right click the docx, select properties then UNBLOCK. It would seem that word puts a block on the file if its downloaded from the internet.
 
Back
Top